Skip to content

Upgrades

Upgrades #1

Workflow file for this run

name: Run Tests
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
test:
name: Code Linting & Unit Tests
strategy:
matrix:
go-version: [ 1.21.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
analyze:
needs: test
name: Analyze with CodeQL
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Init
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Analyze
uses: github/codeql-action/analyze@v2