File tree Expand file tree Collapse file tree 4 files changed +40
-8
lines changed Expand file tree Collapse file tree 4 files changed +40
-8
lines changed Original file line number Diff line number Diff line change 41
41
# package.json schema is draft-04, which is not supported by ajv-cli >=4.
42
42
run : sudo npm install --global ajv-cli@3.x
43
43
44
- - name : Validate GitHub Actions workflows
44
+ - name : Validate package.json
45
45
run : |
46
46
# See: https://github.com/ajv-validator/ajv-cli#readme
47
47
ajv validate \
Original file line number Diff line number Diff line change 1
- name : setup-taskfile workflow
1
+ name : Test TypeScript
2
2
3
3
on :
4
- pull_request :
5
4
push :
5
+ paths :
6
+ - " .github/workflows/test-typescript-task.yml"
7
+ - " jest.config.js"
8
+ - " package.json"
9
+ - " package-lock.json"
10
+ - " Taskfile.yml"
11
+ - " tsconfig.json"
12
+ - " __tests__/**"
13
+ - " **.js"
14
+ - " **.jsx"
15
+ - " **.ts"
16
+ - " **.tsx"
17
+ pull_request :
18
+ paths :
19
+ - " .github/workflows/test-typescript-task.yml"
20
+ - " jest.config.js"
21
+ - " package.json"
22
+ - " package-lock.json"
23
+ - " Taskfile.yml"
24
+ - " tsconfig.json"
25
+ - " __tests__/**"
26
+ - " **.js"
27
+ - " **.jsx"
28
+ - " **.ts"
29
+ - " **.tsx"
30
+ workflow_dispatch :
31
+ repository_dispatch :
6
32
7
33
jobs :
8
34
test :
9
35
runs-on : ${{ matrix.operating-system }}
10
36
11
37
strategy :
38
+ fail-fast : false
39
+
12
40
matrix :
13
- operating-system : [ubuntu-latest, windows-latest]
41
+ operating-system :
42
+ - macos-latest
43
+ - ubuntu-latest
44
+ - windows-latest
14
45
15
46
steps :
16
47
- name : Checkout
17
- uses : actions/checkout@master
48
+ uses : actions/checkout@v2
18
49
19
50
- name : Set Node.js 10.x
20
- uses : actions/setup-node@master
51
+ uses : actions/setup-node@v2
21
52
with :
22
- version : 10 .x
53
+ node- version : 12 .x
23
54
24
55
- name : Install Task
25
56
uses : arduino/actions/setup-taskfile@master
Original file line number Diff line number Diff line change 1
1
# ` arduino/setup-task `
2
2
3
+ [ ![ Test TypeScript status] ( https://github.com/arduino/setup-task/actions/workflows/test-typescript-task.yml/badge.svg )] ( https://github.com/arduino/setup-task/actions/workflows/test-typescript-task.yml )
3
4
[ ![ Check TypeScript status] ( https://github.com/arduino/setup-task/actions/workflows/check-typescript-task.yml/badge.svg )] ( https://github.com/arduino/setup-task/actions/workflows/check-typescript-task.yml )
4
5
[ ![ Check TypeScript Configuration status] ( https://github.com/arduino/setup-task/actions/workflows/check-tsconfig.yml/badge.svg )] ( https://github.com/arduino/setup-task/actions/workflows/check-tsconfig.yml )
5
6
[ ![ Check npm status] ( https://github.com/arduino/setup-task/actions/workflows/check-npm.yml/badge.svg )] ( https://github.com/arduino/setup-task/actions/workflows/check-npm.yml )
Original file line number Diff line number Diff line change 20
20
- task : general:check-spelling
21
21
22
22
ts:install-deps :
23
- desc : Install TypeScript development dependencies
23
+ desc : Install TypeScript dependencies
24
24
cmds :
25
25
- npm install
26
26
You can’t perform that action at this time.
0 commit comments