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 is made.
  • Loading branch information
Erick Kramer committed Jun 20, 2024
1 parent 197652a commit ee2ebec
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Go
on: [push]

jobs:
build:
runs-on: ubuntu-latest

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

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Install dependencies
run: go get .
- name: Test with the Go CLI
run: go test -v ./test

0 comments on commit ee2ebec

Please sign in to comment.