-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ww/explicitcurve
- Loading branch information
Showing
61 changed files
with
61,663 additions
and
49,691 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,51 @@ | ||
name: run harnesses | ||
description: Run x509-limbo's in-repo harnesses and cache their results | ||
outputs: | ||
cache-hit: | ||
description: "Whether or not the cache was hit" | ||
value: "${{ steps.restore-cache.outputs.cache-hit }}" | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
# This action assumes that actions/checkout has run, leaving limbo.json | ||
# in place for the cache check. | ||
|
||
# NOTE: We generate the cache key upfront like this because the `harness/` | ||
# subdirectory is not static: a cache miss means that builds will happen | ||
# under it, changing its hash between the action's start and end. | ||
- name: Compute cache key | ||
id: compute-cache-key | ||
shell: bash | ||
run: | | ||
echo "HARNESS_CACHE_KEY=limbo-harness-${LIMBO_CACHE_KEY}" >> "${GITHUB_OUTPUT}" | ||
env: | ||
LIMBO_CACHE_KEY: ${{ hashFiles('Makefile', 'limbo.json', 'harness/**') }} | ||
|
||
- uses: actions/cache/restore@v4 | ||
id: restore-cache | ||
with: | ||
key: ${{ steps.compute-cache-key.outputs.HARNESS_CACHE_KEY }} | ||
path: results | ||
|
||
- uses: actions/setup-go@v5 | ||
if: steps.restore-cache.outputs.cache-hit != 'true' | ||
with: | ||
go-version: ">=1.20.5" | ||
|
||
- name: setup limbo | ||
shell: bash | ||
if: steps.restore-cache.outputs.cache-hit != 'true' | ||
run: make dev | ||
|
||
- name: run harnesses | ||
shell: bash | ||
if: steps.restore-cache.outputs.cache-hit != 'true' | ||
run: make test -j | ||
|
||
- uses: actions/cache/save@v4 | ||
if: steps.restore-cache.outputs.cache-hit != 'true' | ||
with: | ||
key: ${{ steps.compute-cache-key.outputs.HARNESS_CACHE_KEY }} | ||
path: results |
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Testcase regression detection | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
regressions: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Needed for regression comment generation. | ||
issues: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ">=3.12" | ||
cache: "pip" | ||
cache-dependency-path: pyproject.toml | ||
|
||
- uses: ./.github/actions/run-harnesses | ||
id: run-harnesses | ||
|
||
- name: run regression checks | ||
run: make run ARGS="regression" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
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
Oops, something went wrong.