mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
ci: restore old timing before saving new cache (#22011)
* restore old timing results before saving new cache * don't do an unecessary checkout in set-up-go Signed-off-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
1
.github/actions/set-up-go/action.yml
vendored
1
.github/actions/set-up-go/action.yml
vendored
@@ -25,7 +25,6 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
||||||
- id: go-version
|
- id: go-version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "go-version=$(cat ./.go-version)" >> "$GITHUB_OUTPUT"
|
run: echo "go-version=$(cat ./.go-version)" >> "$GITHUB_OUTPUT"
|
||||||
|
|||||||
9
.github/workflows/test-go.yml
vendored
9
.github/workflows/test-go.yml
vendored
@@ -375,6 +375,11 @@ jobs:
|
|||||||
needs: test-go
|
needs: test-go
|
||||||
runs-on: ${{ fromJSON(inputs.runs-on) }}
|
runs-on: ${{ fromJSON(inputs.runs-on) }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
||||||
|
with:
|
||||||
|
path: test-results/go-test
|
||||||
|
key: go-test-reports-${{ github.run_number }}
|
||||||
|
restore-keys: go-test-reports-
|
||||||
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
@@ -383,7 +388,3 @@ jobs:
|
|||||||
ls -lhR test-results/go-test
|
ls -lhR test-results/go-test
|
||||||
find test-results/go-test -mindepth 1 -mtime +3 -delete
|
find test-results/go-test -mindepth 1 -mtime +3 -delete
|
||||||
ls -lhR test-results/go-test
|
ls -lhR test-results/go-test
|
||||||
- uses: actions/cache/save@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
|
||||||
with:
|
|
||||||
path: test-results/go-test
|
|
||||||
key: go-test-reports-${{ github.run_number }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user