Merge pull request #284 from SuperZ3/mainState #229
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Read .nvmrc | |
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ env.NVMRC }} | |
- name: Install packages | |
run: npm i | |
- name: Check formatter | |
run: npm run prettier:check | |
- name: Check linter | |
run: npm run lint | |
- name: Check tests | |
run: npm run test | |
- name: Check build | |
run: npm run build |