From 95f20aadb4882fd374d6437589e8664329e11f38 Mon Sep 17 00:00:00 2001 From: Siddharth VP Date: Wed, 13 Nov 2024 22:36:28 +0530 Subject: [PATCH] ci/cd: run on dev branches as well + run on node 22 as well --- .github/workflows/ci-push.yml | 10 ++++++++-- .github/workflows/code-ql.yml | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-push.yml b/.github/workflows/ci-push.yml index 54971cf..3bc56b2 100644 --- a/.github/workflows/ci-push.yml +++ b/.github/workflows/ci-push.yml @@ -4,7 +4,10 @@ name: Node.js CI on: push: - branches: [master] + branches: + - master + - develop + - dev/** paths: - 'src/**' - 'tests/**' @@ -40,7 +43,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [10.x, 12.x, 16.x, 18.x] + node-version: [10.x, 16.x, 18.x, 22.x] needs: build steps: - uses: actions/checkout@v4 @@ -61,6 +64,7 @@ jobs: path: coverage coveralls: + if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest needs: test steps: @@ -76,6 +80,7 @@ jobs: # Upload coverage report to toolforge as well upload_coverage: + if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest needs: test steps: @@ -99,6 +104,7 @@ jobs: key: ${{ secrets.TOOLFORGE_PRIVATE_KEY }} mirror: + if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/code-ql.yml b/.github/workflows/code-ql.yml index 897cc88..9c0e13b 100644 --- a/.github/workflows/code-ql.yml +++ b/.github/workflows/code-ql.yml @@ -2,7 +2,10 @@ name: 'CodeQL' on: pull_request: - branches: [master, develop] + branches: + - master + - develop + - dev/** paths: - 'src/**' - 'tests/**'