conformance: support OCI_REPORT_DIR #305
Workflow file for this run
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
name: build-pr | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ['1.18', '1.19', '1.20'] | |
steps: | |
- name: checkout source code | |
uses: actions/checkout@v3 | |
- name: setup go environment | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: run tests | |
id: tests | |
run: | | |
export PATH="$(go env GOPATH)/bin:${PATH}" | |
make install.tools | |
make .gitvalidation | |
make docs conformance | |
set +e | |
make registry-ci conformance-ci | |
CONFORMANCE_RC="$?" | |
set -e | |
if [[ -f report.html ]]; then | |
echo "Found report.html." | |
echo "has-report=true" >> $GITHUB_OUTPUT | |
fi | |
echo "Conformance return code: ${CONFORMANCE_RC}" | |
exit ${CONFORMANCE_RC} | |
- name: Upload OCI conformance results as build artifact | |
if: always() && steps.tests.outputs.has-report == 'true' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: oci-conformance-results-${{ matrix.go }} | |
path: | | |
./report.html | |
./junit.xml |