Skip to content

Commit f4b4d3f

Browse files
committed
chore(CI): support testing against multiple ESLint versions
1 parent 8e04368 commit f4b4d3f

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/validate.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ name: validate
22
on:
33
push:
44
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/**"
1212
pull_request: {}
1313
jobs:
1414
main:
1515
# ignore all-contributors PRs
1616
if: ${{ !contains(github.head_ref, 'all-contributors') }}
1717
strategy:
1818
matrix:
19+
eslint: [6.8.0, 6, 7.0.0, 7]
1920
node: [12, 14, 16]
2021
runs-on: ubuntu-latest
2122
steps:
@@ -35,6 +36,9 @@ jobs:
3536
with:
3637
useLockFile: false
3738

39+
- name: Install ESLint v${{ matrix.eslint }}
40+
run: npm install eslint@${{ matrix.eslint }}
41+
3842
- name: ▶️ Run validate script
3943
run: npm run validate
4044

@@ -44,8 +48,7 @@ jobs:
4448
release:
4549
needs: main
4650
runs-on: ubuntu-latest
47-
if:
48-
${{ github.repository == 'testing-library/eslint-plugin-jest-dom' &&
51+
if: ${{ github.repository == 'testing-library/eslint-plugin-jest-dom' &&
4952
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
5053
github.ref) && github.event_name == 'push' }}
5154
steps:
@@ -73,7 +76,7 @@ jobs:
7376
- name: 🚀 Release
7477
uses: cycjimmy/semantic-release-action@v2
7578
with:
76-
semantic_version: 17
79+
semantic_version: 18
7780
branches: |
7881
[
7982
'+([0-9])?(.{+([0-9]),x}).x',

0 commit comments

Comments
 (0)