-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (50 loc) · 1.37 KB
/
manual_run_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: Run lint and test
on:
workflow_dispatch:
inputs:
node_versions:
description: 'Select Node versions'
required: true
default: '["18.x", "20.x", "22.x"]'
type: choice
options:
- '["18.x"]'
- '["20.x"]'
- '["22.x"]'
- '["20.x", "22.x"]'
- '["18.x", "20.x", "22.x"]'
os_version:
description: 'Select OS'
required: true
default: '["ubuntu-latest"]'
type: choice
options:
- '["ubuntu-latest"]'
- '["windows-latest"]'
- '["macos-latest"]'
fail_fast:
description: 'Use fail-fast'
required: true
type: boolean
jobs:
test:
name: Test (Node ${{ matrix.node-version }} on ${{ matrix.os }})
strategy:
fail-fast: ${{ inputs.fail_fast }}
matrix:
os: ${{ fromJSON(inputs.os_version) }}
node-version: ${{ fromJSON(inputs.node_versions) }}
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
repository: vHeemstra/is-apng
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm run test