Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Add GitHub actions

Add GitHub actions #2

Workflow file for this run

name: CI
on:
pull_request: {}
push:
branches:
- main
jobs:
checks:
runs-on: ubuntu-latest
steps:
# Check out the repository so we can run our tasks
- name: Checkout code
uses: actions/checkout@v3
# Set up Go (adjust the version as needed)
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
# Install Task (the Task runner from https://taskfile.dev)
- name: Install Task
uses: arduino/setup-task@v2
# Run the unit tests via Task (assumes a "test" task exists in your Taskfile)
- name: Run Go Unit Tests
run: task test
# Run the linter via Task (assumes a "lint" task exists in your Taskfile)
- name: Run Go Linter
run: task lint