-
-
Notifications
You must be signed in to change notification settings - Fork 224
52 lines (51 loc) · 1.33 KB
/
test.yml
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
name: test
on:
push:
branches-ignore:
- 'publish1' # srcはテストしても意味がないため
pull_request:
branches-ignore:
- 'publish1' # srcはテストしても意味がないため
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20]
os: [macOS-latest, windows-latest, ubuntu-latest]
name: "Build on Node.js: ${{ matrix.node-version }} OS: ${{ matrix.os }}"
steps:
- uses: actions/checkout@v4
- name: "Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22.5.1]
name: "Test on Node.js ${{ matrix.node-version }}"
steps:
- uses: actions/checkout@v4
- name: "Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
e2e:
runs-on: ubuntu-latest
name: E2E
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run e2e