Feat/use vitest #524
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: | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 18.12.1 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.12.1' | |
- run: npm install -g yarn | |
- run: yarn install --frozen-lockfile --ignore-optionals | |
- name: Commit lint | |
run: yarn commitlint --from $(git rev-parse --short HEAD^1) --to $(git rev-parse --short HEAD^2) | |
- name: Run prettier | |
run: yarn prettier:write | |
- name: Run build | |
run: yarn build | |
- name: Run linting | |
run: yarn lint | |
- name: Run tests | |
run: yarn test |