Skip to content

Commit

Permalink
test dockerfile debian arm64 wf
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed May 3, 2024
1 parent e7cee45 commit 7b99a3f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
# 1.17.x, # Ended 02 Aug 2022
# 1.18.x, # Ended 01 Feb 2023
# 1.19.x, # Ended 8 Aug 2023
1.20.x, # Ended 06 Feb 2024
1.21.x,
1.22.x
1.20, # Ended 06 Feb 2024
1.21,
1.22
]
os: [
ubuntu-22.04,
ubuntu-latest,
# ubuntu-latest,
# windows-latest,
macos-12,
macos-14
# macos-12,
# macos-14
]
fail-fast: false
runs-on: ${{ matrix.os }}
Expand All @@ -49,7 +49,7 @@ jobs:
if: matrix.os == 'macos-14'
- name: Unit Test
if: matrix.os != 'ubuntu-22.04'
run: make ci_unit in docker
run: make ci_unit
- name: Set up QEMU
if: matrix.os == 'ubuntu-22.04'
uses: docker/setup-qemu-action@v3
Expand All @@ -58,14 +58,15 @@ jobs:
run: |
docker build \
--platform linux/arm64 \
--build-arg ${{ matrix.go-version }} \
-f Dockerfile-deb \
-t pactfoundation/pact-go-test .
-t pactfoundation/pact-go-test-${{ matrix.go-version }} .
- name: Unit Test (arm64 docker)
if: matrix.os == 'ubuntu-22.04'
run: |
docker run \
--platform linux/arm64 \
--rm pactfoundation/pact-go-test
--rm pactfoundation/pact-go-test-${{ matrix.go-version }}
- name: Examples with Standalone (arm64 docker)
if: matrix.os == 'ubuntu-22.04'
run: |
Expand All @@ -77,7 +78,7 @@ jobs:
-e APP_SHA \
-e APP_BRANCH=${APP_REF:11} \
--rm \
pactfoundation/pact-go-test \
pactfoundation/pact-go-test-${{ matrix.go-version }} \
/bin/sh -c "make download_plugins && make install-pact-ruby-standalone && PACT_TOOL=standalone make pact"
# - name: Examples with Docker
# if: runner.os == 'Linux'
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-deb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM golang:latest
ARG VERSION=latest
FROM golang:${VERSION}

RUN apt-get update && apt-get install -y openjdk-17-jre file protobuf-compiler
# RUN mkdir -p /root/.pact/plugins
Expand Down

0 comments on commit 7b99a3f

Please sign in to comment.