feat(main): add 2024 apple specs #3048
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
name: Test on node ${{ matrix.node }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [20, 22] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use node ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org | |
- name: Cache npm | |
uses: actions/cache@v1 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Cache jest | |
uses: actions/cache@v1 | |
with: | |
path: .jest-cache | |
key: ${{ runner.os }}-${{ matrix.node-version }}-jest | |
- name: install | |
run: npm ci | |
- name: lint | |
run: npm run lint | |
- name: build | |
run: npm run build | |
- name: install chromium | |
run: npm run chromium | |
- name: install package revision | |
run: npm i . -g | |
- name: test | |
run: npm test | |
env: | |
FORCE_EXIT: true | |
- name: upload visual diff | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: visual-test-diff-${{ runner.os }}-${{ matrix.node }} | |
path: temp/diff/* | |
commit-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: ahmadnassri/action-commit-lint@v1 | |
auto-merge: | |
if: ${{ false }} | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: fastify/github-action-merge-dependabot@v2.1.1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
merge-method: rebase |