Skip to content

Commit

Permalink
ci(workflows): ensure docker image is working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Dec 3, 2024
1 parent 9b7af49 commit 46f9be4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,21 @@ jobs:
- name: Run tests
run: cd examples && go test ./...

ensure-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build image
run: |
docker build . \
--tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA
- name: Check image
run: |
docker run \
-v ./_testdata/examples/petstore.yml:/petstore.yml \
--rm \
ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA /petstore.yml

0 comments on commit 46f9be4

Please sign in to comment.