forked from opencontainers/distribution-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.19 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: build
on:
push:
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