diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..e178669 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,89 @@ +name: ci + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + +jobs: + kind-selfhost: + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + with: + path: ${{ github.workspace }}/src/github.com/${{ github.repository }} + + - name: "Install kind" + run: | + [ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.26.0/kind-linux-amd64 + # For ARM64 + [ $(uname -m) = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.26.0/kind-linux-arm64 + chmod +x ./kind + sudo mv ./kind /usr/local/bin/kind + + - name: "Setup k8s cluster" + run: | + cat < [!NOTE] +> On the host computer, `localhost:80` should be accessible. + +```bash +cat <