Skip to content

fix: increase hash size for autogenerated IDs to reduce collisions - … #1541

fix: increase hash size for autogenerated IDs to reduce collisions - …

fix: increase hash size for autogenerated IDs to reduce collisions - … #1541

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v3
- name: Test
run: nix develop --command xc test-cover
- name: Copy coverage.out to temp
run: cp coverage.out $RUNNER_TEMP
- name: Update coverage report
uses: ncruces/go-coverage-report@57ac6f0f19874f7afbab596105154f08004f482e
with:
coverage-file: ${{ runner.temp }}/coverage.out
report: 'true'
chart: 'true'
reuse-go: 'true'
if: |
github.event_name == 'push'
- name: Build
run: nix build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v3
- name: Lint
run: nix develop --command xc lint
ensure-generated:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v3
- name: Generate
run: nix develop --command xc ensure-generated
ensure-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v3
- name: Fmt
run: nix develop --command xc fmt
- name: Ensure clean
run: git diff --exit-code