test with exponential backoff #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: | |
pull_request: | |
push: | |
branches: | |
- "*" | |
jobs: | |
test: | |
env: | |
LATEST_GO: 1.19.x # version used for release | |
strategy: | |
matrix: | |
go: [ 1.19.x ] | |
os: [ ubuntu-latest ] | |
arch: | |
- arm64 | |
- amd64 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- run: make test | |
test_build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: | |
- arm64 | |
- amd64 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- run: make create PLUGIN_NAME=ghcr.io/${{ github.repository }} PLUGIN_TAG=$(shell git describe --tags --exact-match 2> /dev/null || echo dev)-${{ matrix.arch }} |