Skip to content

feat: Allow ACR authentication using Azure CLI #914

feat: Allow ACR authentication using Azure CLI

feat: Allow ACR authentication using Azure CLI #914

Workflow file for this run

name: Integration tests
on:
push:
branches:
- 'master'
- 'release-*'
pull_request:
branches:
- 'master'
jobs:
check-go:
name: Ensure Go modules synchronicity
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Download all Go modules
run: |
go mod download
- name: Check for tidyness of go.mod and go.sum
run: |
go mod tidy
git diff --exit-code -- .
codegen:
name: Run codegen
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Kustomize v2
run: |
set -xo pipefail
KUSTOMIZE_VERSION=2.0.2
URL="https://github.com/kubernetes-sigs/kustomize/releases/download/v${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64"
BINNAME=kustomize2
curl -sLf --retry 3 -o /tmp/kustomize2 "$URL"
sudo mv /tmp/kustomize2 /usr/local/bin/kustomize2
chmod +x /usr/local/bin/kustomize2
- name: Run make manifests
run: |
make manifests
- name: Check nothing has changed
run: |
set -xo pipefail
git diff --exit-code -- . ':!go.sum' ':!go.mod' ':!assets/swagger.json' | tee codegen.patch
lint:
name: Ensure code is correctly linted
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
args: --timeout 5m
test:
name: Ensure unit tests are passing
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Run tests
env:
GNUPG_DISABLED: true
run: |
make test
- name: Upload code coverage information to codecov.io
uses: codecov/codecov-action@v1
with:
file: coverage.out