mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-29 03:35:09 +01:00
Lay out the framework for checking goldens being used across all test runs
This commit is contained in:
parent
06cc3eedbc
commit
5a6be563c5
32
.github/workflows/go-test.yml
vendored
32
.github/workflows/go-test.yml
vendored
@ -80,23 +80,49 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
with:
|
with:
|
||||||
name: test-results-${{ matrix.os }}.json
|
name: test-results-${{ matrix.os }}-${{ matrix.tests }}.json
|
||||||
path: /tmp/testrun.json
|
path: /tmp/testrun.json
|
||||||
- name: Upload failed test goldens
|
- name: Upload failed test goldens
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
with:
|
with:
|
||||||
name: test-goldens-${{ matrix.os }}.zip
|
name: test-goldens-${{ matrix.os }}-${{ matrix.tests }}.zip
|
||||||
path: /tmp/test-goldens/
|
path: /tmp/test-goldens/
|
||||||
- name: Upload test log
|
- name: Upload test log
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
with:
|
with:
|
||||||
name: testlog-${{ matrix.os }}.txt
|
name: testlog-${{ matrix.os }}-${{ matrix.tests }}.txt
|
||||||
path: /tmp/test.log
|
path: /tmp/test.log
|
||||||
|
- name: Upload test log
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: success() || failure()
|
||||||
|
with:
|
||||||
|
name: goldens-used-${{ matrix.os }-${{ matrix.tests }}.txt
|
||||||
|
path: /tmp/goldens-used.txt
|
||||||
|
|
||||||
# - name: Setup tmate session
|
# - name: Setup tmate session
|
||||||
# if: ${{ failure() }}
|
# if: ${{ failure() }}
|
||||||
# uses: mxschmitt/action-tmate@v3
|
# uses: mxschmitt/action-tmate@v3
|
||||||
# with:
|
# with:
|
||||||
# limit-access-to-actor: true
|
# limit-access-to-actor: true
|
||||||
|
check-goldens:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest, macos-14]
|
||||||
|
fail-fast: false
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.21
|
||||||
|
- name: Download all artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
- name: Check all goldens were used
|
||||||
|
run: |
|
||||||
|
ls .
|
||||||
|
echo ---
|
||||||
|
ls *
|
||||||
|
# TODO: Actually do this check that was reverted in 06cc3eedbc5be6a09dbc3f274adcacd875eb25a8
|
||||||
|
Loading…
Reference in New Issue
Block a user