-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROX-21124: Move non-e2e testing OSCI jobs to GitHub Actions (#1347)
- Loading branch information
Showing
12 changed files
with
705 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Cache Go Dependencies | ||
description: Cache Go Dependencies | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Determine Go cache paths | ||
id: cache-paths | ||
run: | | ||
echo "GOCACHE=$(go env GOCACHE)" >> "$GITHUB_OUTPUT" | ||
echo "GOMODCACHE=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT" | ||
shell: bash | ||
|
||
- name: Cache Go Dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ steps.cache-paths.outputs.GOMODCACHE }} | ||
key: go-mod-v1-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Cache Go Build | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ steps.cache-paths.outputs.GOCACHE }} | ||
key: go-build-v1-${{ github.job }}-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Download Go modules | ||
run: make deps --always-make | ||
shell: bash |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Job Preamble | ||
description: Common steps for most jobs | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Recover docker image cache space | ||
run: | | ||
df --si / | ||
docker system prune --force --all | ||
df --si / | ||
shell: bash | ||
|
||
- name: Ignore dubious repository ownership | ||
run: | | ||
# Prevent fatal error "detected dubious ownership in repository" from recent git. | ||
git config --global --add safe.directory "$(pwd)" | ||
shell: bash |
Oops, something went wrong.