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

Provide jump flag to check the git ref in nixpkgs repository #80

Provide jump flag to check the git ref in nixpkgs repository

Provide jump flag to check the git ref in nixpkgs repository #80

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths:
- '**.go'
- 'go.*'
- 'testdata/**'
pull_request:
paths:
- '**.go'
- 'go.*'
- 'testdata/**'
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'
- run: go vet ./...
- run: go fmt ./... && git add --intent-to-add . && git diff --exit-code
# Because of default in vscode extension
staticcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: dominikh/staticcheck-action@v1.3.0
with:
# Keep same version as *.nix
version: '2023.1.3'