mirror of
https://github.com/unraid/api.git
synced 2026-01-02 22:50:02 -06:00
fix: only test when API is changed
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -64,7 +64,7 @@ jobs:
|
||||
|
||||
- name: Test inside of the docker container
|
||||
run: |
|
||||
git diff --name-only ${{ github.sha }}^ ${{ github.sha }} | grep -q '^api/' || exit 0
|
||||
git diff --name-only HEAD^ HEAD | grep -q '^api/' || exit 0
|
||||
docker run --rm builder npm run coverage
|
||||
- name: Get Git Short Sha and API version
|
||||
id: vars
|
||||
|
||||
Reference in New Issue
Block a user