Debian Codegraph @

yaml-types/.github/workflows/ci.yaml

raw
1 name: CI
2
3 on:
4 pull_request:
5 branches: [main]
6 push:
7 branches: [main]
8 workflow_dispatch:
9
10 jobs:
11 test:
12 runs-on: ${{ matrix.os }}
13
14 strategy:
15 matrix:
16 os: [ubuntu-latest, macos-latest, windows-latest]
17 node-version: [16, 18, latest]
18
19 steps:
20 - uses: actions/checkout@v3
21 - name: Use Node.js ${{ matrix.node-version }}
22 uses: actions/setup-node@v3
23 with:
24 node-version: ${{ matrix.node-version }}
25 - run: npm ci
26 - run: npm test
27
28 lint:
29 runs-on: ubuntu-latest
30
31 steps:
32 - uses: actions/checkout@v3
33 - name: Use Node.js
34 uses: actions/setup-node@v3
35 with: { node-version: 16 }
36 - run: npm ci
37 - run: npx prettier --check .