Update Yarn to v4 #1484
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
# For now | |
name: build | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '>=22' | |
cache: yarn | |
- run: yarn install | |
- run: yarn build | |
- run: yarn test-with-coverage | |
if: "!contains(github.event.head_commit.message, 'skip test')" | |
- name: Deploy to github pages | |
uses: crazy-max/ghaction-github-pages@v4.1.0 | |
with: | |
build_dir: build | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONALACCESSTOKEN }} | |
if: "contains(github.ref, 'main')" | |
- uses: codecov/codecov-action@v4.6.0 | |
if: "!contains(github.event.head_commit.message, 'skip test')" | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |