Skip to content

1.5.2

1.5.2 #169

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test:
name: Test
timeout-minutes: 15
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node-version:
- 16
- 18
- 20
steps:
- uses: actions/checkout@v4
- name: Use PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: pnpm i
- name: Check code styles
run: pnpm lint
test-summary:
name: Test Summary
needs:
- test
if: ${{ always() && github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Check test matrix status
if : ${{ needs.test.result != 'success' }}
run : exit 1