Skip to content

Merge pull request #7 from ChargePi/dependabot/go_modules/github.com/… #7

Merge pull request #7 from ChargePi/dependabot/go_modules/github.com/…

Merge pull request #7 from ChargePi/dependabot/go_modules/github.com/… #7

Workflow file for this run

name: "Lint and test"
on:
push:
branches:
- master
paths-ignore:
- '*.md'
pull_request:
types: [ opened, synchronize ]
paths-ignore:
- '*.md'
branches:
- master
jobs:
lint:
name: "Run linters"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21.1
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1.17"
- name: Install deps & build
run: |
go mod download
go build -v ./...
- name: Test with the Go CLI
run: go test