Skip to content

CI & Linting integration (#3) #2

CI & Linting integration (#3)

CI & Linting integration (#3) #2

Workflow file for this run

name: CI
env:
GOLANGCILINT_VERSION: "1.55.2"
GO_VERSION: 1.21.x
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
with:
version: v${{ env.GOLANGCILINT_VERSION }}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure Go
uses: actions/setup-go@v2
with:
go-version: 1.21.x
- name: Build
run: go build -v ./...
- name: Run Tests
run: |
go test ./...