mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 21:13:54 +02:00
Reduced the execution of tests and lint actions on pull requests (#143)
This change will change the pipline to limit duplicat execution of tests and lint actions in pull requests to save computing time.
This commit is contained in:
3
.github/workflows/test-and-build-action.yaml
vendored
3
.github/workflows/test-and-build-action.yaml
vendored
@ -2,6 +2,7 @@ name: Test & Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [reopened, opened, synchronize]
|
||||
push:
|
||||
|
||||
jobs:
|
||||
@ -63,6 +64,7 @@ jobs:
|
||||
thresholdModified: 0.7
|
||||
|
||||
coverage_report:
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
@ -99,6 +101,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
steps:
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
|
Reference in New Issue
Block a user