Skip to content

chore: Move the webhook folder #9

chore: Move the webhook folder

chore: Move the webhook folder #9

name: check-test-unit
permissions:
contents: read
issues: read
checks: write
pull-requests: write
on:
push:
pull_request:
workflow_dispatch:
inputs:
ref:
description: "The ref (branch or SHA) to process"
required: false
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash -xe {0}
jobs:
unit-test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
ref: ${{ github.event.inputs.ref }} # Use the ref if provided, otherwise defaults to the current branch/commit
- uses: nixbuild/nix-quick-install-action@v33
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_conf: |
extra-substituters = https://cache.garnix.io
extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g
- name: Populate the nix store
run: |
nix develop --command echo
- name: Run unit tests
env:
CI: true
run: nix develop --command just test --profile ci-unit
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
check_name: Test results
files: |
target/nextest/ci-unit/junit.xml