Skip to content

Commit

Permalink
Merge pull request #4 from hhimanshu/h2-cleanup-actions
Browse files Browse the repository at this point in the history
ci(packaging): run tests before release
  • Loading branch information
hhimanshu authored Apr 9, 2021
2 parents 15bdd54 + 3c34857 commit 68730c9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
branches:
- master
jobs:
release:
name: Release
setup:
name: Setup Dependencies
runs-on: ubuntu-18.04
steps:
- name: Checkout
Expand All @@ -16,6 +16,18 @@ jobs:
node-version: 12
- name: Install dependencies
run: npx yarn install
test:
name: Run Tests
runs-on: ubuntu-18.04
needs: setup
steps:
- name: Test
- run: npx yarn test
release:
name: Release
runs-on: ubuntu-18.04
needs: test
steps:
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 68730c9

Please sign in to comment.