Skip to content

Commit

Permalink
build: Try out GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
roblillack authored Aug 27, 2024
1 parent b321872 commit 232b8c4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build & Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.20', '1.11', '1.22', '1.23.x' ]
steps:
- uses: actions/checkout@v4

- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

- name: Code coverage analysis
run: go run github.com/mattn/[email protected]

0 comments on commit 232b8c4

Please sign in to comment.