Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,27 @@
- name: Checkout
uses: actions/checkout@v4

- name: Try build and Test
run: |
export TEST_IMAGE_NAME=${{ env.IMAGE_NAME }}:${{ github.sha }}
docker compose --file docker-compose.test.yml up --exit-code-from sut -t 10 --build

- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: all

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
id: buildx

- name: Try build
uses: docker/build-push-action@v6

Check warning on line 34 in .github/workflows/test-pr.yml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/test-pr.yml#L34

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
with:
context: .
push: false
tags: ${{ env.IMAGE_NAME }}:${{ github.sha }}
provenance: false

- name: Try build and Test
run: |
export TEST_IMAGE_NAME=${{ env.IMAGE_NAME }}:${{ github.sha }}
docker compose --file docker-compose.test.yml up --exit-code-from sut -t 10

- name: Try build multi-arch
uses: docker/build-push-action@v6
with:
Expand Down