Cleanup overmind source source handling #1596
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: Run Tests | |
on: push | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: depot-ubuntu-22.04-4 | |
env: | |
CGO_ENABLED: 0 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Go Init | |
uses: ./.github/actions/go_init | |
- name: Go Test | |
run: | | |
go run main.go --version | |
go test -v -timeout 5m ./... | |
golangci: | |
name: lint | |
runs-on: depot-ubuntu-22.04-4 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Go Init | |
uses: ./.github/actions/go_init | |
- name: Check go generate output is clean | |
run: | | |
git diff --exit-code | |
# get .golangci.yml from github.com/overmindtech/golangci-lint_config | |
- name: Get .golangci.yml from github.com/overmindtech/golangci-lint_configs | |
run: | | |
curl -sfL https://raw.githubusercontent.com/overmindtech/golangci-lint_config/main/.golangci.yml -o .golangci.yml | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.60.1 | |
args: --timeout 3m |