-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (47 loc) · 1.19 KB
/
test.yml
File metadata and controls
60 lines (47 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Lint and Run Automated Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "22.x"
cache: yarn
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Run Linters
run: yarn lint
test:
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest"]
include:
- os: ubuntu-latest
installzsh: true
runs-on: ${{ matrix.os }}
steps:
- if: matrix.installzsh
run: sudo apt-get install zsh
- uses: actions/checkout@v6
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "22.x"
cache: yarn
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Run bats tests
run: yarn test