-
Notifications
You must be signed in to change notification settings - Fork 12
64 lines (59 loc) · 1.82 KB
/
tests.yaml
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
61
62
63
64
name: Action tests
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
schema:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test:
# Strict
- suite: nostrict
schema: ./tests/nostrict/schema.yaml
target: ./tests/nostrict/valid-matching-fields.yaml
no-strict: true
error-is-success: false
- suite: nostrict
schema: ./tests/nostrict/schema.yaml
target: ./tests/nostrict/valid-extra-argument.yaml
no-strict: true
error-is-success: false
- suite: nostrict
schema: ./tests/nostrict/schema.yaml
target: ./tests/nostrict/invalid-not-a-boolean.yaml
no-strict: true
error-is-success: true
- suite: nostrict
schema: ./tests/nostrict/schema.yaml
target: ./tests/nostrict/invalid-nums-out-of-range.yaml
no-strict: true
error-is-success: true
# Nostrict
- suite: strict
schema: ./tests/strict/schema.yaml
target: ./tests/strict/valid-matching-fields.yaml
no-strict: false
error-is-success: false
- suite: strict
schema: ./tests/strict/schema.yaml
target: ./tests/strict/invalid-extra-argument.yaml
no-strict: false
error-is-success: true
steps:
- uses: actions/[email protected]
- uses: ./
name: "Test: ${{ matrix.test.suite }} ${{ matrix.test.target }}"
with:
schema: ${{ matrix.test.schema }}
target: ${{ matrix.test.target }}
no-strict: ${{ matrix.test.no-strict }}
error-is-success: ${{ matrix.test.error-is-success }}