This repository has been archived by the owner on Feb 11, 2025. It is now read-only.
Add GitHub actions #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |