@@ -2,20 +2,21 @@ name: validate
2
2
on :
3
3
push :
4
4
branches :
5
- - ' +([0-9])?(.{+([0-9]),x}).x'
6
- - ' main'
7
- - ' next'
8
- - ' next-major'
9
- - ' beta'
10
- - ' alpha'
11
- - ' !all-contributors/**'
5
+ - " +([0-9])?(.{+([0-9]),x}).x"
6
+ - " main"
7
+ - " next"
8
+ - " next-major"
9
+ - " beta"
10
+ - " alpha"
11
+ - " !all-contributors/**"
12
12
pull_request : {}
13
13
jobs :
14
14
main :
15
15
# ignore all-contributors PRs
16
16
if : ${{ !contains(github.head_ref, 'all-contributors') }}
17
17
strategy :
18
18
matrix :
19
+ eslint : [6.8.0, 6, 7.0.0, 7]
19
20
node : [12, 14, 16]
20
21
runs-on : ubuntu-latest
21
22
steps :
35
36
with :
36
37
useLockFile : false
37
38
38
- - name : ▶️ Run validate script
39
+ - name : Install ESLint v${{ matrix.eslint }}
40
+ run : npm install --no-save --force eslint@${{ matrix.eslint }}
41
+
42
+ - name : ▶️ Run validate script (without linting)
43
+ if : ${{ matrix.eslint != 7 }}
44
+ run : npm run validate -- build,test:coverage
45
+
46
+ - name : ▶️ Run validate script (with linting)
47
+ if : ${{ matrix.eslint == 7 }}
39
48
run : npm run validate
40
49
41
50
- name : ⬆️ Upload coverage report
44
53
release :
45
54
needs : main
46
55
runs-on : ubuntu-latest
47
- if :
48
- ${{ github.repository == 'testing-library/eslint-plugin-jest-dom' &&
56
+ if : ${{ github.repository == 'testing-library/eslint-plugin-jest-dom' &&
49
57
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
50
58
github.ref) && github.event_name == 'push' }}
51
59
steps :
73
81
- name : 🚀 Release
74
82
uses : cycjimmy/semantic-release-action@v2
75
83
with :
76
- semantic_version : 17
84
+ semantic_version : 18
77
85
branches : |
78
86
[
79
87
'+([0-9])?(.{+([0-9]),x}).x',
0 commit comments