chpre: use beta 4 #5
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ci-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set node version to ${{ inputs.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ inputs.node-version }} | |
- name: Install | |
run: pnpm i | |
- name: Lint | |
run: pnpm run lint | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node_version: [20] | |
include: | |
- os: macos-14 | |
node_version: 20 | |
- os: windows-latest | |
node_version: 20 | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set node version to ${{ inputs.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ inputs.node-version }} | |
- name: Install | |
run: pnpm i | |
- name: Install Playwright Dependencies | |
run: pnpm exec playwright install chromium --with-deps | |
- name: Build | |
run: pnpm run build | |
- name: Test | |
run: pnpm run test |