forked from Mirror/attic-action
25 lines
473 B
YAML
25 lines
473 B
YAML
name: "Test"
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test-cache:
|
|
runs-on: nix-flakes
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Attic Cache
|
|
uses: ./
|
|
with:
|
|
endpoint: ${{ vars.ATTIC_ENDPOINT }}
|
|
cache: ${{ vars.ATTIC_CACHE }}
|
|
token: ${{ secrets.ATTIC_TOKEN }}
|
|
|
|
- name: Build Nix Package
|
|
run: nix-build test.nix
|