Feat/update yarn and node #10
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: PR Check | |
on: | |
push: | |
branches: | |
- '*' | |
- '!master' | |
pull_request: | |
branches: ["master"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install yarn lastest version | |
run: | | |
corepack enable | |
yarn set version berry | |
- name: Setup node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.15.0' | |
- name: Install dependencies | |
run: yarn --immutable | |
- name: Run type-check | |
run: yarn type-check | |
env: | |
CI: true | |
- name: Run lint | |
run: yarn lint | |
env: | |
CI: true | |
- name: Run pre-tests | |
run: yarn pre-test | |
env: | |
CI: true | |
- name: Run tests | |
run: yarn test | |
env: | |
CI: true | |
- name: Run Build | |
run: yarn build | |
env: | |
CI: true |