Skip to content

Commit

Permalink
build: skip ci when not required (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
lampajr committed Feb 23, 2024
1 parent 5afc464 commit 2c5c546
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
name: 'coverage report'

on:
pull_request_target:
branches:
- main
pull_request_target:
branches:
- main
paths-ignore:
- 'LICENSE*'
- '**.gitignore'
- '**.md'
- '**.txt'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
test-script: npm test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
test-script: npm test
10 changes: 9 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@

name: "pull request check"

on: pull_request
on:
pull_request:
paths-ignore:
- 'LICENSE*'
- '**.gitignore'
- '**.md'
- '**.txt'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'

jobs:
build:
Expand Down

0 comments on commit 2c5c546

Please sign in to comment.