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' name: 'coverage report'
on: on:
pull_request_target: pull_request_target:
branches: branches:
- main - main
paths-ignore:
- 'LICENSE*'
- '**.gitignore'
- '**.md'
- '**.txt'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'
jobs: jobs:
coverage: coverage:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ArtiomTr/jest-coverage-report-action@v2 - uses: ArtiomTr/jest-coverage-report-action@v2
with: with:
test-script: npm test test-script: npm test

View file

@ -3,7 +3,15 @@
name: "pull request check" name: "pull request check"
on: pull_request on:
pull_request:
paths-ignore:
- 'LICENSE*'
- '**.gitignore'
- '**.md'
- '**.txt'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'
jobs: jobs:
build: build: