Add tests workflow

This commit is contained in:
Evan Fiordeliso 2023-08-15 12:48:58 -04:00
parent 8e6a2b40db
commit a9e2006247
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
---
name: "Test"
# yamllint disable-line rule:truthy
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- uses: cachix/cachix-action@v12
with:
name: ytdl-web
extraPullNames: devenv
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Install devenv.sh
run: nix profile install github:cachix/devenv/latest
- run: devenv shell echo ok
- run: devenv ci