-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #453 from jdolitsky/conformance-lock
Rewrite conformance action to enable locking to spec version
- Loading branch information
Showing
5 changed files
with
120 additions
and
13 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,26 @@ | ||
name: conformance-action-pr | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout source code | ||
uses: actions/checkout@v3 | ||
- name: Start a test registry (zot) | ||
run: | | ||
set -x | ||
make registry-ci | ||
- name: Run OCI distribution-spec conformance | ||
env: | ||
OCI_ROOT_URL: http://localhost:5000 | ||
OCI_NAMESPACE: myorg/myrepo | ||
OCI_TEST_PULL: 1 | ||
OCI_TEST_PUSH: 1 | ||
OCI_TEST_CONTENT_DISCOVERY: 1 | ||
OCI_TEST_CONTENT_MANAGEMENT: 1 | ||
uses: ./ |
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,26 @@ | ||
name: conformance-action | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout source code | ||
uses: actions/checkout@v3 | ||
- name: Start a test registry (zot) | ||
run: | | ||
set -x | ||
make registry-ci | ||
- name: Run OCI distribution-spec conformance | ||
env: | ||
OCI_ROOT_URL: http://localhost:5000 | ||
OCI_NAMESPACE: myorg/myrepo | ||
OCI_TEST_PULL: 1 | ||
OCI_TEST_PUSH: 1 | ||
OCI_TEST_CONTENT_DISCOVERY: 1 | ||
OCI_TEST_CONTENT_MANAGEMENT: 1 | ||
uses: ./ |
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 |
---|---|---|
|
@@ -229,6 +229,8 @@ jobs: | |
steps: | ||
- name: Run OCI Distribution Spec conformance tests | ||
uses: opencontainers/distribution-spec@main | ||
# you can also run against a specific tag or commit instead | ||
# uses: opencontainers/[email protected] | ||
env: | ||
OCI_ROOT_URL: https://myreg.io | ||
OCI_NAMESPACE: mytestorg/mytestrepo | ||
|
@@ -241,14 +243,6 @@ jobs: | |
OCI_HIDE_SKIPPED_WORKFLOWS: 0 | ||
OCI_DEBUG: 0 | ||
OCI_DELETE_MANIFEST_BEFORE_BLOBS: 0 | ||
- run: mkdir -p .out/ && mv {report.html,junit.xml} .out/ | ||
if: always() | ||
- name: Upload test results zip as build artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: oci-test-results-${{ github.sha }} | ||
path: .out/ | ||
if: always() | ||
``` | ||
You can also add a badge pointing to list of runs for this action using the following markdown: | ||
|