build: skip ci when not required

This commit is contained in:
Andrea Lamparelli 2024-02-23 11:47:21 +01:00
parent 5afc464268
commit 14f866c0fc
2 changed files with 26 additions and 11 deletions

View file

@ -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

View file

@ -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: