Skip to content

Update cachix/cachix-action action to v17 #191

Update cachix/cachix-action action to v17

Update cachix/cachix-action action to v17 #191

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/cache@v5
with:
path: bin
key: bin-${{ runner.os }}-${{ hashFiles('.versions/*') }}
restore-keys: |
bin-${{ runner.os }}
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- run: make test
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v17
with:
name: unstoppablemango
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix flake check --all-systems
- run: nix build
gomod2nix:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- run: go tool gomod2nix
- run: git diff --exit-code gomod2nix.toml
clean:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- run: make pkg/renovate/zz_generated.schema.go
- run: git diff --exit-code