add ci pipeline (#22)

Co-authored-by: Thomas von Dein <tom@izb.net>
This commit is contained in:
T.v.Dein
2023-12-23 22:36:21 +01:00
committed by GitHub
parent b28f544416
commit dc4d3d7f9c
2 changed files with 34 additions and 0 deletions

33
.github/workflows/ci.yaml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: build-and-test
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
version: [1.21]
os: [ubuntu-latest, windows-latest, macos-latest]
name: Build
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.version }}
id: go
- name: checkout
uses: actions/checkout@v3
- name: build
run: go build
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3