mirror of
https://code.forgejo.org/actions/git-backporting
synced 2025-03-14 22:27:02 +01:00
build: skip ci when not required (#100)
This commit is contained in:
parent
5afc464268
commit
2c5c54654d
2 changed files with 26 additions and 11 deletions
27
.github/workflows/coverage.yml
vendored
27
.github/workflows/coverage.yml
vendored
|
@ -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
.github/workflows/pull-request.yml
vendored
10
.github/workflows/pull-request.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue