From b8a2270b43b346abcc81eaab6165580bfcee46ba Mon Sep 17 00:00:00 2001 From: Tommy Markley Date: Thu, 10 Feb 2022 17:04:22 -0600 Subject: [PATCH] Run build and test workflow on all branches (#1222) * Skips feature branches * Use the `.nvmrc` file for the `node` version instead of a hard-coded version. Resolves #1023 Signed-off-by: Tommy Markley --- .github/workflows/pr_check_workflow.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr_check_workflow.yml b/.github/workflows/pr_check_workflow.yml index efe45a5c5ad5..a7f36b24d478 100644 --- a/.github/workflows/pr_check_workflow.yml +++ b/.github/workflows/pr_check_workflow.yml @@ -3,11 +3,12 @@ name: Build and test +# trigger on every commit push and PR for all branches except feature branches on: push: - branches: [ main ] + branches: [ '**', '!feature/**' ] pull_request: - branches: [ main ] + branches: [ '**', '!feature/**' ] env: CACHE_NAME: osd-node-modules @@ -64,7 +65,7 @@ jobs: if: steps.job_successful.outputs.job_successful != 'true' uses: actions/setup-node@v2 with: - node-version: "14.18.2" + node-version-file: ".nvmrc" registry-url: 'https://registry.npmjs.org' - name: Setup Yarn @@ -161,7 +162,7 @@ jobs: if: steps.ftr_tests_results.outputs.ftr_tests_results != 'success' uses: actions/setup-node@v2 with: - node-version: "14.18.2" + node-version-file: ".nvmrc" registry-url: 'https://registry.npmjs.org' - name: Setup Yarn