Skip to content

chore: introduce .github #1

chore: introduce .github

chore: introduce .github #1

Workflow file for this run

name: mev-commit-ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Check Out Code
uses: actions/checkout@v4
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version: 1.22.1
id: go
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.54.2
args: --timeout 5m
- name: Tidy
run: go list -f '{{.Dir}}' -m | xargs -L1 go mod tidy -C
- name: Sync
run: go work sync
- name: Vet
run: go list -f '{{.Dir}}/...' -m | xargs go vet
- name: Build
run: go list -f '{{.Dir}}/...' -m | xargs go build
- name: Test
run: go list -f '{{.Dir}}/...' -m | xargs go test -v