chore(deps): update yarn to v4 #3320
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
on: push | |
name: Test on push | |
jobs: | |
test: | |
name: Test (JSDOM) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'yarn' | |
- name: Install Deps | |
run: yarn install --immutable | |
- name: Run tests (browser) | |
run: yarn test | |
test_node: | |
name: Test (Node.js) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'yarn' | |
- name: Install Deps | |
run: yarn install --immutable | |
- name: Run tests (node) | |
run: yarn test-node | |
test_pack: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'yarn' | |
- name: Install Deps | |
run: yarn install --immutable | |
- name: Build the package | |
run: yarn pack | |
prettier: | |
name: Check prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'yarn' | |
- name: Install Deps | |
run: | | |
yarn install --immutable | |
- name: Prettier check | |
run: | | |
yarn run lint-prettier | |
eslint: | |
name: Check eslint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'yarn' | |
- name: Install Deps | |
run: | | |
yarn install --immutable | |
- name: Eslint check | |
run: | | |
yarn run lint-eslint |