Skip to content

Merge pull request #503 from alexandrevilain/feat/add-support-for-ren… #1213

Merge pull request #503 from alexandrevilain/feat/add-support-for-ren…

Merge pull request #503 from alexandrevilain/feat/add-support-for-ren… #1213

Workflow file for this run

name: Tests and build
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash
env:
GO_VERSION: "1.20.4"
GOLANG_CI_VERSION: v1.52.2
jobs:
license:
name: Check license on files
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- name: check
run: make check-license
lint:
name: Lint files
runs-on: 'ubuntu-latest'
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- uses: actions/checkout@v3
- name: lint
uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GOLANG_CI_VERSION }}
build:
name: Build operator
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: build
run: make build
test:
name: Test operator
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: build
run: make test