-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix requirements.txt path, create executable file for ghchecks and up…
…date swifty-code-coverage (#19)
- Loading branch information
1 parent
da1dee6
commit 21e12c9
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
- run: pip install -r requirements.txt | ||
shell: bash | ||
- run: swift test --enable-code-coverage | ||
- uses: michaelhenry/[email protected].0 | ||
- uses: michaelhenry/[email protected].1 | ||
with: | ||
build-path: .build | ||
target: GithubChecksPackageTests.xctest | ||
|
@@ -49,7 +49,7 @@ jobs: | |
- run: pip install -r requirements.txt | ||
shell: bash | ||
- run: swift test --enable-code-coverage | ||
- uses: michaelhenry/[email protected].0 | ||
- uses: michaelhenry/[email protected].1 | ||
with: | ||
build-path: .build | ||
target: GithubChecksPackageTests.xctest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,10 @@ runs: | |
steps: | ||
- name: Cache Pip | ||
id: pip-cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-hashFiles("**/requirements.txt")-v1 | ||
key: ${{ runner.os }}-${{ env.GITHUB_ACTION_PATH }}-pip-cache | ||
|
||
- uses: fwal/[email protected] | ||
with: | ||
|
@@ -37,13 +37,27 @@ runs: | |
python-version: '3.8.12' | ||
cache: 'pip' | ||
|
||
- run: pip install -r requirements.txt | ||
- run: pip install -r $GITHUB_ACTION_PATH/requirements.txt | ||
if: steps.pip-cache.outputs.cache-hit != 'true' | ||
shell: bash | ||
|
||
- name: Cache ghchecks | ||
id: ghchecks-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: /usr/local/bin/ghchecks | ||
key: ${{ runner.os }}-${{ env.GITHUB_ACTION_PATH }}-ghchecks-cache | ||
|
||
- if: steps.ghchecks-cache.outputs.cache-hit != 'true' | ||
run: | | ||
cd $GITHUB_ACTION_PATH | ||
swift build -c release && \ | ||
cp .build/release/ghchecks /usr/local/bin/ghchecks | ||
shell: bash | ||
|
||
- name: Create report | ||
run: | | ||
swift run ghchecks create-report \ | ||
ghchecks create-report \ | ||
--title "${{ inputs.title }} " \ | ||
--path "${{ inputs.path }}" \ | ||
--format "${{ inputs.format }}" \ | ||
|