39 lines
798 B
YAML
39 lines
798 B
YAML
name: Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: '0 22 * * 3'
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version:
|
|
- 22.12.x
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
|
with:
|
|
node-version: "${{ matrix.node-version }}"
|
|
cache: 'yarn'
|
|
- name: Install
|
|
run: yarn install --immutable
|
|
- name: Build
|
|
run: yarn build
|
|
- name: Lint
|
|
run: yarn lint
|
|
- name: Test
|
|
run: yarn test
|