Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Switch Ubuntu base image to 22.04 from 20.04 #338

Switch Ubuntu base image to 22.04 from 20.04

Switch Ubuntu base image to 22.04 from 20.04 #338

Workflow file for this run

name: Go
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: golangci-lint
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018
with:
version: v1.43.0
skip-go-installation: true
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '17'
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1
- name: Generate
run: go generate ./...
- name: Check no diff after generating
run: git diff --exit-code
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1
- name: Build
run: go build ./...
- name: Build Tests
run: go test -exec=echo ./...
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1
- name: Run Unit Tests
run: go test -v -race ./...