Run tests on windows #2614
Workflow file for this run
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: Build | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- "main" | |
- "hotfix-*" | |
jobs: | |
check-cache: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: yarn install & check-cache | |
run: | | |
yarn install --immutable --immutable-cache --check-cache | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: yarn install | |
run: | | |
yarn install --immutable --immutable-cache | |
# required to have types info, otherwise eslint will complain about any type | |
- name: yarn compile | |
run: | | |
yarn compile | |
- name: yarn lint | |
run: | | |
yarn lint | |
- name: yarn dlx sherif | |
run: | | |
yarn dlx sherif | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: yarn install | |
run: | | |
yarn install --immutable --immutable-cache | |
- name: yarn prettier | |
run: | | |
yarn prettier:check | |
build: | |
name: "Build" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18, 20] | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "yarn" | |
- name: yarn install | |
run: | | |
yarn install --immutable --immutable-cache | |
- name: "Playwright install chromium" | |
run: yarn workspace allure-playwright playwright install chromium --with-deps | |
- name: yarn build | |
run: | | |
yarn run build | |
- name: yarn test | |
run: | | |
yarn run test |