lint #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches-ignore: | |
- main | |
# Trigger this workflow on PRs created by Changesets by assigning it to | |
# someone. We need this workaround because PRs created by GitHub Actions do | |
# not trigger workflows per default. | |
pull_request: | |
branches: | |
- main | |
types: | |
- assigned | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16.13.2" | |
cache: npm | |
- name: Install npm | |
run: npm i -g [email protected] | |
- name: Install | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm test -- --coverage | |
- name: Build | |
run: npm run build |