Merge pull request #1512 from fluxcd/gha-arm64
Run ARM64 tests on GitHub runners
This commit is contained in:
commit
59ad5a72ee
|
@ -51,46 +51,3 @@ jobs:
|
|||
continue-on-error: true
|
||||
run: |
|
||||
kubectl -n source-system logs -l app=source-controller
|
||||
|
||||
kind-linux-arm64:
|
||||
# Hosted on Equinix
|
||||
# Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners
|
||||
runs-on: [self-hosted, Linux, ARM64, equinix]
|
||||
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
cache-dependency-path: |
|
||||
**/go.sum
|
||||
**/go.mod
|
||||
- name: Enable integration tests
|
||||
# Only run integration tests for main and release branches
|
||||
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')
|
||||
run: |
|
||||
echo 'GO_TAGS=integration' >> $GITHUB_ENV
|
||||
- name: Prepare
|
||||
id: prep
|
||||
run: |
|
||||
echo "CLUSTER=arm64-${GITHUB_SHA:0:7}-$(date +%s)" >> $GITHUB_OUTPUT
|
||||
echo "CONTEXT=kind-arm64-${GITHUB_SHA:0:7}-$(date +%s)" >> $GITHUB_OUTPUT
|
||||
- name: Setup Kubernetes Kind
|
||||
run: |
|
||||
kind create cluster --name ${{ steps.prep.outputs.CLUSTER }} --kubeconfig=/tmp/${{ steps.prep.outputs.CLUSTER }}
|
||||
- name: Run e2e tests
|
||||
env:
|
||||
SKIP_COSIGN_VERIFICATION: true
|
||||
KIND_CLUSTER_NAME: ${{ steps.prep.outputs.CLUSTER }}
|
||||
KUBECONFIG: /tmp/${{ steps.prep.outputs.CLUSTER }}
|
||||
CREATE_CLUSTER: false
|
||||
BUILD_PLATFORM: linux/arm64
|
||||
MINIO_TAG: RELEASE.2020-09-17T04-49-20Z-arm64
|
||||
run: make e2e
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: |
|
||||
kind delete cluster --name ${{ steps.prep.outputs.CLUSTER }}
|
||||
rm /tmp/${{ steps.prep.outputs.CLUSTER }}
|
||||
|
|
|
@ -36,10 +36,9 @@ jobs:
|
|||
run: make test
|
||||
|
||||
test-linux-arm64:
|
||||
# Hosted on Equinix
|
||||
# Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners
|
||||
runs-on: [self-hosted, Linux, ARM64, equinix]
|
||||
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]'
|
||||
runs-on:
|
||||
group: "ARM64"
|
||||
if: github.actor != 'dependabot[bot]'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
|
@ -53,15 +52,6 @@ jobs:
|
|||
- name: Run tests
|
||||
env:
|
||||
SKIP_COSIGN_VERIFICATION: true
|
||||
|
||||
TEST_AZURE_ACCOUNT_NAME: ${{ secrets.TEST_AZURE_ACCOUNT_NAME }}
|
||||
TEST_AZURE_ACCOUNT_KEY: ${{ secrets.TEST_AZURE_ACCOUNT_KEY }}
|
||||
|
||||
# Temporarily disabling -race for arm64 as our GitHub action
|
||||
# runners don't seem to like it. The race detection was tested
|
||||
# on both Apple M1 and Linux arm64 with successful results.
|
||||
#
|
||||
# We should reenable go test -race for arm64 runners once the
|
||||
# current issue is resolved.
|
||||
GO_TEST_ARGS: ''
|
||||
run: make test
|
||||
|
|
Loading…
Reference in New Issue