Files
mimik/.github/workflows/pr-test.yml
2026-07-22 09:34:39 +08:00

42 lines
686 B
YAML

name: PR Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v6
with:
node-version: "22"
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Run tests
run: pnpm test
- name: Build Chrome
run: pnpm build
- name: Build Firefox
run: pnpm build:firefox