mirror of
https://github.com/ryanccn/attic-action.git
synced 2024-11-20 06:24:16 +00:00
33 lines
611 B
YAML
33 lines
611 B
YAML
|
name: "Test"
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: ["main"]
|
||
|
pull_request:
|
||
|
workflow_call:
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
test-cache:
|
||
|
strategy:
|
||
|
matrix:
|
||
|
os: [ubuntu-latest, macos-latest]
|
||
|
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout repository
|
||
|
uses: actions/checkout@v3
|
||
|
|
||
|
- name: Install Nix
|
||
|
uses: cachix/install-nix-action@v22
|
||
|
|
||
|
- name: Setup Attic Cache
|
||
|
uses: ./
|
||
|
with:
|
||
|
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||
|
cache: ${{ secrets.ATTIC_CACHE }}
|
||
|
token: ${{ secrets.ATTIC_TOKEN }}
|
||
|
|
||
|
- run: nix-build test.nix
|