From 1f9bdd09a29a5e0564ddc874814eaf36d9380ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Fri, 26 Aug 2022 10:27:04 +0200 Subject: [PATCH] fix(ci): Setup a separate workflow action to test for pushes on master (#3951) --- .github/workflows/ci-master.yml | 32 +++++++++++++++++++ .../{tests.yml => ci-pull-requests.yml} | 4 +-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci-master.yml rename .github/workflows/{tests.yml => ci-pull-requests.yml} (92%) diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml new file mode 100644 index 0000000000..4f6654e966 --- /dev/null +++ b/.github/workflows/ci-master.yml @@ -0,0 +1,32 @@ +name: Test Master + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + timeout-minutes: 30 + + strategy: + matrix: + node-version: [14.x, 16.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm install -g npm@latest + npm install + npm run build --if-present + npm test + npm run lint + env: + CI: true diff --git a/.github/workflows/tests.yml b/.github/workflows/ci-pull-requests.yml similarity index 92% rename from .github/workflows/tests.yml rename to .github/workflows/ci-pull-requests.yml index db6ccc85bf..92d62c7f6f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/ci-pull-requests.yml @@ -1,6 +1,6 @@ -name: Node CI +name: Test Pull Requests -on: [push, pull_request] +on: [pull_request] jobs: build: