Skip to content

Commit

Permalink
CI: Add github workflow to validate package
Browse files Browse the repository at this point in the history
The provided github action can be used to build and test the package
every time a push or a pull_request is made.
  • Loading branch information
Erick Kramer committed Jun 20, 2024
1 parent 197652a commit 7faf0bb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Go
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test -v ./test

0 comments on commit 7faf0bb

Please sign in to comment.