Run go-makefile-maker #1388
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: Conformance Test | |
"on": | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- '*' | |
paths-ignore: | |
- '**.md' | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: OCI Distribution | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
check-latest: true | |
go-version: "1.22" | |
- name: Start keppel | |
run: | | |
make build/keppel | |
RUNNER_TRACKING_ID="" && make run-api-for-conformance-test & | |
until curl -s http://localhost:8080/healthcheck; do sleep 0.1; done | |
IP=$(hostname -I | awk '{print $1}') | |
echo "SERVER_URL=http://${IP}:8080" >> $GITHUB_ENV | |
- name: Run OCI Distribution Spec conformance tests | |
uses: opencontainers/distribution-spec@main | |
env: | |
OCI_ROOT_URL: ${{ env.SERVER_URL }} | |
OCI_NAMESPACE: conformance-test/oci | |
OCI_USERNAME: johndoe | |
OCI_PASSWORD: SuperSecret | |
OCI_TEST_PULL: 1 | |
OCI_TEST_PUSH: 1 | |
OCI_TEST_CONTENT_DISCOVERY: 1 | |
OCI_TEST_CONTENT_MANAGEMENT: 1 | |
OCI_CROSSMOUNT_NAMESPACE: conformance-test/oci | |
OCI_HIDE_SKIPPED_WORKFLOWS: 0 | |
OCI_DEBUG: 1 | |
OCI_DELETE_MANIFEST_BEFORE_BLOBS: 1 | |
- run: mkdir -p .out/ && mv {report.html,junit.xml} .out/ | |
if: always() | |
- name: Upload test results zip as build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: oci-test-results-${{ github.sha }} | |
path: .out/ | |
if: always() | |
services: | |
postgres: | |
image: postgres:16 | |
env: | |
POSTGRES_PASSWORD: mysecretpassword | |
ports: | |
- 54321:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 |