Skip to content

fix ci again

fix ci again #62

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
branches: [ '**' ]
jobs:
check-style:
name: Code style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Lint
run: nix develop --command golangci-lint run
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Run units tests
run: nix develop --command go test -json ./... > test.json
- name: Annotate tests
if: always()
uses: guyarb/golang-test-annotations@v0.5.1
with:
test-results: test.json
build:
name: Build Radioboat
runs-on: ubuntu-latest
needs: [unit-tests]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build package
run: nix build