Skip to content

ci: setup

ci: setup #2

Workflow file for this run

name: CI
on: [pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify go.mod
run: go mod tidy
# - name: Run lint
# run: make lint
build:
name: Build
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/[email protected]
- name: Go Build
run: make build
tests:
name: Tests
runs-on: ubuntu-latest
container: docker.io/library/golang:latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Tests
run: make test