Skip to content

add Buck build

add Buck build #4

Workflow file for this run

name: Buck Tests
on:
push:
branches:
- dev
workflow_dispatch:
env:
hix_test_verbose: 1
jobs:
test-names:
name: Run tests
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
outputs:
tests: ${{ steps.ci-matrix.outputs.tests }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v16
with:
name: tek
- id: ci-matrix
name: Output CI matrix
run: |
echo -n "tests=" >> "$GITHUB_OUTPUT"
nix --show-trace eval --json .#ci-matrix >> "$GITHUB_OUTPUT"
tests:
name: 🛠️ ${{ matrix.test }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
needs: test-names
strategy:
matrix:
test: ${{ fromJSON(needs.test-names.outputs.tests) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v16
with:
name: tek
- name: Free up space
run: rm -rf /opt/hostedtoolcache
- name: Run test '${{ matrix.test }}'
run: nix --show-trace run .#${{ matrix.test }}