Skip to content

Commit a simple CLI example for editing #2

Commit a simple CLI example for editing

Commit a simple CLI example for editing #2

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
# Disabling linter for now. Will enable when project is finished, so
# all of the errors can be fixed in a single pass
#- name: golangci-lint
# uses: golangci/golangci-lint-action@v3
# with:
# # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
# version: latest
# args: --build-tags="$GOTAGS" --concurrency 2 --timeout 10m
- name: go mod tidy check
run: |
go mod tidy
git diff --exit-code -- go.mod go.sum
- name: Build # Simple syntax checker
run: make
- name: Test # Run the golang tests!
run: make test