From 814a6552626d4562247d1dfee85e22e5fa23ee80 Mon Sep 17 00:00:00 2001 From: Ahmed Hesham Date: Sun, 28 Sep 2025 17:49:10 +0300 Subject: [PATCH] adds the test workflow --- .github/workflows/main.yml | 6 +++--- .github/workflows/push-pr.yml | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/push-pr.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ae9838..8ea0f4f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,13 +7,13 @@ on: jobs: example-job: runs-on: ubuntu-latest - + steps: - name: print a welcome message run: echo "welcome to our first github actions workflow" - + - name: checkout repository uses: actions/checkout@v5.0.0 - + - name: List repository files run: ls -la diff --git a/.github/workflows/push-pr.yml b/.github/workflows/push-pr.yml new file mode 100644 index 0000000..fc37b51 --- /dev/null +++ b/.github/workflows/push-pr.yml @@ -0,0 +1,18 @@ +on: + push: + branches: + - main + - "release/**" + pull_request: + branches: + - main + - "release/**" +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v5.0.0 + + - name: Run tests + run: npm test \ No newline at end of file