feat: update upstream version to 1.19.3 (#9) #19
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: "CI" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
release: | |
types: [published] | |
env: | |
TEST_IMAGE_TAG: structure-tests-action:test | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Lint Dockerfile | |
uses: hadolint/hadolint-action@v3.1.0 | |
with: | |
dockerfile: Dockerfile | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
needs: [lint] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build test image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
load: true | |
tags: ${{ env.TEST_IMAGE_TAG }} | |
- name: Install container-structure-test | |
run: | | |
curl -LO https://github.com/GoogleContainerTools/container-structure-test/releases/download/v1.17.0/container-structure-test-linux-amd64 \ | |
&& chmod +x container-structure-test-linux-amd64 \ | |
&& mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test \ | |
&& container-structure-test version | |
- name: Run tests | |
run: | | |
container-structure-test test \ | |
--image ${{ env.TEST_IMAGE_TAG }} \ | |
--config structure-tests.yaml |