mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: e2e-arm64
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ main, update-components, equinix-runners ]
|
|
|
|
jobs:
|
|
test:
|
|
# Hosted on Equinix
|
|
# Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners
|
|
runs-on: [self-hosted, Linux, ARM64, equinix]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.x
|
|
- name: Prepare
|
|
id: prep
|
|
run: |
|
|
echo ::set-output name=CLUSTER::arm64-${GITHUB_SHA:0:7}-$(date +%s)
|
|
echo ::set-output name=CONTEXT::kind-arm64-${GITHUB_SHA:0:7}-$(date +%s)
|
|
- name: Build
|
|
run: |
|
|
make build
|
|
- name: Setup Kubernetes Kind
|
|
run: |
|
|
kind create cluster --name ${{ steps.prep.outputs.CLUSTER }} --kubeconfig=/tmp/${{ steps.prep.outputs.CLUSTER }}
|
|
- name: Run e2e tests
|
|
run: TEST_KUBECONFIG=/tmp/${{ steps.prep.outputs.CLUSTER }} make e2e
|
|
- name: Cleanup
|
|
if: always()
|
|
run: |
|
|
kind delete cluster --name ${{ steps.prep.outputs.CLUSTER }}
|
|
rm /tmp/${{ steps.prep.outputs.CLUSTER }}
|