From 208a74a2134ff263b43a6629111dd335632e47a6 Mon Sep 17 00:00:00 2001 From: James Blair Date: Sat, 19 Aug 2023 21:28:32 +1200 Subject: [PATCH] Run integration, e2e & grpcproxy tests in container. So that we have one approach for running tests regardless of cpu architecture. Signed-off-by: James Blair --- .github/workflows/e2e.yaml | 7 +++++++ .github/workflows/grpcproxy.yaml | 6 ++++++ .github/workflows/tests.yaml | 6 ++++++ 3 files changed, 19 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 58a086ca6..7bf55882f 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -5,6 +5,11 @@ permissions: read-all jobs: test: runs-on: ubuntu-latest + container: + image: golang:1.20-bullseye + defaults: + run: + shell: bash strategy: fail-fast: true matrix: @@ -13,6 +18,8 @@ jobs: - linux-386-e2e steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + # https://github.com/actions/checkout/issues/1169 + - run: git config --system --add safe.directory '*' - id: goversion run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 diff --git a/.github/workflows/grpcproxy.yaml b/.github/workflows/grpcproxy.yaml index 96f18a52c..e28b3b6ae 100644 --- a/.github/workflows/grpcproxy.yaml +++ b/.github/workflows/grpcproxy.yaml @@ -5,6 +5,10 @@ permissions: read-all jobs: test: runs-on: ubuntu-latest + container: golang:1.20-bullseye + defaults: + run: + shell: bash strategy: fail-fast: true matrix: @@ -13,6 +17,8 @@ jobs: - linux-amd64-grpcproxy-e2e steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + # https://github.com/actions/checkout/issues/1169 + - run: git config --system --add safe.directory '*' - id: goversion run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 6f06addb3..96c286261 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,6 +5,10 @@ permissions: read-all jobs: test: runs-on: ubuntu-latest + container: golang:1.20-bullseye + defaults: + run: + shell: bash strategy: fail-fast: false matrix: @@ -16,6 +20,8 @@ jobs: - linux-386-unit-1-cpu steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + # https://github.com/actions/checkout/issues/1169 + - run: git config --system --add safe.directory '*' - id: goversion run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0