Skip to content

add pcp

add pcp #804

Workflow file for this run

on:
pull_request:
push:
branches: [main]
permissions:
id-token: write
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Build connet
run: nix develop --command make build
test:
name: Test
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Run tests
run: nix develop --command make test
- name: Run lint
run: nix develop --command make lint
- name: Go module tidy
run: nix develop --command go mod tidy
- name: Gen proto
run: nix develop --command make gen
- name: Check if tidy or gen proto changed anything
run: git diff --exit-code
nix-build:
name: Build nix packages
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/flakehub-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Build default
run: nix build .
- name: Build docker
run: nix build .#docker
- name: Flake check
run: nix flake check -L