Skip to content

Commit

Permalink
👷 Add CI for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
leodr committed Apr 7, 2021
1 parent bab7154 commit c28c214
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check Pull Request
on:
pull_request: {}
jobs:
validate:
strategy:
matrix:
node: [12, 14, 15]
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: ⬇️ Checkout repo
uses: actions/checkout@v2

- name: ⎔ Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: 📥 Install dependencies
run: yarn bootstrap
env:
HUSKY_SKIP_INSTALL: true

- name: ▶️ Run validate script
run: yarn validate

- name: ⬆️ Upload coverage report
uses: codecov/codecov-action@v1

0 comments on commit c28c214

Please sign in to comment.