Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Prefer newer Nix action for better cache #49

Prefer newer Nix action for better cache

Prefer newer Nix action for better cache #49

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache-dependency-path: 'go.sum'
- run: go test
- run: go build -v -race
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache-dependency-path: 'go.sum'
- name: lint
run: go vet
- name: format
run: go fmt && git add --intent-to-add . && git diff --exit-code