Skip to content

Commit

Permalink
ci(workflows): make sure needs are met
Browse files Browse the repository at this point in the history
  • Loading branch information
ducktordanny committed Jun 16, 2024
1 parent 7b86c03 commit d5df94c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/tests-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
branches: master

jobs:
publish:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -23,12 +24,22 @@ jobs:
- name: Build
run: yarn build

checks:
name: Checks
needs: prepare
runs-on: ubuntu-latest
steps:
- name: Lint
run: yarn lint

- name: Rule tests
run: yarn test

release:
name: Release
needs: checks
runs-on: ubuntu-latest
steps:
- name: Publish
uses: JS-DevTools/npm-publish@v3
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches: master

jobs:
build:
name: Tests
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -24,6 +24,11 @@ jobs:
- name: Build
run: yarn build

checks:
name: Checks
needs: prepare
runs-on: ubuntu-latest
steps:
- name: Lint
run: yarn lint

Expand Down

0 comments on commit d5df94c

Please sign in to comment.