2023-07-19 01:53:49 +00:00
|
|
|
name: "Test"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["main"]
|
|
|
|
workflow_call:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-cache:
|
2024-09-01 14:42:16 +00:00
|
|
|
runs-on: nix-flakes
|
2023-07-19 01:53:49 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-10 04:24:06 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-07-19 01:53:49 +00:00
|
|
|
|
|
|
|
- name: Setup Attic Cache
|
|
|
|
uses: ./
|
|
|
|
with:
|
2024-09-01 08:30:33 +00:00
|
|
|
endpoint: ${{ vars.ATTIC_ENDPOINT }}
|
|
|
|
cache: ${{ vars.ATTIC_CACHE }}
|
2023-07-19 01:53:49 +00:00
|
|
|
token: ${{ secrets.ATTIC_TOKEN }}
|
|
|
|
|
2023-07-19 02:51:10 +00:00
|
|
|
- name: Build Nix Package
|
2023-11-08 14:21:46 +00:00
|
|
|
run: nix-build test.nix
|