You must login to view /lordwelch/comictagger/commit/e70c47d12af8f0bb5b5469ac50b993ea4b20ed24.
The GitHub option should be usable for most people, it only links via username.

Files
router7/.github/workflows/go.yml
Michael Stapelberg 35fcfc15c8 GitHub Actions: run tests in nix-shell, not Docker
For some reason, the MAC address reported by dnsmasq in Docker on GitHub Actions
no longer matches the address expected by the test. With Nix, it works.
2025-07-20 22:57:13 +02:00

50 lines
938 B
YAML

name: GitHub Actions CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Ensure all files were formatted as per gofmt
run: |
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]
- name: Go Vet
run: |
go vet
- name: Build and Test
run: |
go build -v ./cmd/...
go test -v -race ./internal/...
integrationtest:
name: integrationtest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-25.05
- name: Run tests in nix-shell
run: nix-shell --command 'make test'