mirror of
https://code.forgejo.org/actions/git-backporting
synced 2025-03-15 06:36:59 +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'
|
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
|
10
.github/workflows/pull-request.yml
vendored
10
.github/workflows/pull-request.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue