Skip to content

Commit

Permalink
feat(ci): add build and test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoscode committed Dec 11, 2023
1 parent 137f7f5 commit 2efe0b1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on:
push:
paths:
- 'pkg/**'
- '*.go'
- 'go.mod'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.4'

- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: task build

- name: Test with the Go CLI
run: task test

0 comments on commit 2efe0b1

Please sign in to comment.