Skip to content

Commit

Permalink
split ci workflow jobs (#353)
Browse files Browse the repository at this point in the history
* split ci workflow jobs

* split one test job into two
  • Loading branch information
bahmutov authored Feb 22, 2023
1 parent 9e8713b commit c5d7066
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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 📊
Expand All @@ -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 }}
Expand Down

0 comments on commit c5d7066

Please sign in to comment.