Skip to content

add github actions for lint & test #1

add github actions for lint & test

add github actions for lint & test #1

Workflow file for this run

name: "tests"

Check failure on line 1 in .github/workflows/tests.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yaml

Invalid workflow file

`pr` is not a valid event name
on:
push:
pr:
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with: { version: latest }
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Print system information
run: cat /proc/{meminfo,cpuinfo}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: make test