Skip to content

Commit

Permalink
ci: reduce the running of ci (#5282)
Browse files Browse the repository at this point in the history
  • Loading branch information
uiolee authored Sep 1, 2023
1 parent d29d774 commit 7b588e7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
name: Linter

on: [push, pull_request]
on:
push:
branches:
- "master"
- "v7.0.0"
paths:
- "lib/**"
- "test/**"
- ".github/workflows/linter.yml"
pull_request:
paths:
- "lib/**"
- "test/**"
- ".github/workflows/linter.yml"

permissions:
contents: read
Expand All @@ -13,7 +26,7 @@ jobs:
- name: Use Node.js 14.x
uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: "14.x"
- name: Install Dependencies
run: npm install
- name: Lint
Expand Down
25 changes: 20 additions & 5 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
name: Tester

on: [push, pull_request]
on:
push:
branches:
- "master"
- "v7.0.0"
paths:
- "lib/**"
- "test/**"
- "package.json"
- ".github/workflows/tester.yml"
pull_request:
paths:
- "lib/**"
- "test/**"
- "package.json"
- ".github/workflows/tester.yml"

permissions:
contents: read
Expand All @@ -11,7 +26,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ['14.x', '16.x', '18.x']
node-version: ["14.x", "16.x", "18.x"]
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand All @@ -27,13 +42,13 @@ jobs:
CI: true
coverage:
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['14.x']
node-version: ["14.x"]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down

0 comments on commit 7b588e7

Please sign in to comment.