From c5d70660883c06d05bbcc00c2578d6a5e0f2fad9 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 22 Feb 2023 13:38:33 -0500 Subject: [PATCH] split ci workflow jobs (#353) * split ci workflow jobs * split one test job into two --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f856ef1..fa1d575 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,15 @@ name: ci on: [push, pull_request] jobs: - tests: + tests1: runs-on: ubuntu-latest steps: - name: Checkout 🛎 uses: actions/checkout@v3 + - name: Node version 🖨️ + run: node -v + - name: NPM install uses: bahmutov/npm-install@v1 @@ -34,6 +37,17 @@ jobs: - name: Run demo 7 📊 run: npm run demo7 + tests2: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎 + uses: actions/checkout@v3 + + - name: Node version 🖨️ + run: node -v + + - name: NPM install + uses: bahmutov/npm-install@v1 # hmm why are some demos skipped? - name: Run demo 11 📊 @@ -57,8 +71,15 @@ jobs: - name: Run demo expect 403 code 📊 run: npm run demo-expect-403 + release: + needs: ['tests1', 'tests2'] + if: github.ref == 'refs/heads/master' + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎 + uses: actions/checkout@v3 + - name: Semantic Release 🚀 - if: github.ref == 'refs/heads/master' uses: cycjimmy/semantic-release-action@v3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}