Skip to content

Commit 7b588e7

Browse files
authored
ci: reduce the running of ci (#5282)
1 parent d29d774 commit 7b588e7

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

.github/workflows/linter.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
name: Linter
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
- "v7.0.0"
8+
paths:
9+
- "lib/**"
10+
- "test/**"
11+
- ".github/workflows/linter.yml"
12+
pull_request:
13+
paths:
14+
- "lib/**"
15+
- "test/**"
16+
- ".github/workflows/linter.yml"
417

518
permissions:
619
contents: read
@@ -13,7 +26,7 @@ jobs:
1326
- name: Use Node.js 14.x
1427
uses: actions/setup-node@v3
1528
with:
16-
node-version: '14.x'
29+
node-version: "14.x"
1730
- name: Install Dependencies
1831
run: npm install
1932
- name: Lint

.github/workflows/tester.yml

+20-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
name: Tester
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
- "v7.0.0"
8+
paths:
9+
- "lib/**"
10+
- "test/**"
11+
- "package.json"
12+
- ".github/workflows/tester.yml"
13+
pull_request:
14+
paths:
15+
- "lib/**"
16+
- "test/**"
17+
- "package.json"
18+
- ".github/workflows/tester.yml"
419

520
permissions:
621
contents: read
@@ -11,7 +26,7 @@ jobs:
1126
strategy:
1227
matrix:
1328
os: [ubuntu-latest, windows-latest, macos-latest]
14-
node-version: ['14.x', '16.x', '18.x']
29+
node-version: ["14.x", "16.x", "18.x"]
1530
fail-fast: false
1631
steps:
1732
- uses: actions/checkout@v3
@@ -27,13 +42,13 @@ jobs:
2742
CI: true
2843
coverage:
2944
permissions:
30-
checks: write # for coverallsapp/github-action to create new checks
31-
contents: read # for actions/checkout to fetch code
45+
checks: write # for coverallsapp/github-action to create new checks
46+
contents: read # for actions/checkout to fetch code
3247
runs-on: ${{ matrix.os }}
3348
strategy:
3449
matrix:
3550
os: [ubuntu-latest]
36-
node-version: ['14.x']
51+
node-version: ["14.x"]
3752
steps:
3853
- uses: actions/checkout@v3
3954
- name: Use Node.js ${{ matrix.node-version }}

0 commit comments

Comments
 (0)