2b7ce58d2f
* Add github action to check flake groups * Run on pull_requests and filter ~files~ *paths* * Use composite action to reuse setup steps * Use common setuo for frontend action * Fix path to action * Remove checkout action from common setup Checkout needed to fetch action * Provide secrets to action Co-authored-by: Rok Garbas <rok@garbas.si>
42 lines
795 B
YAML
42 lines
795 B
YAML
name: "Check Flake Groups"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- 'flakes/**.toml'
|
|
|
|
jobs:
|
|
automatic-custom-flakes-check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: true
|
|
|
|
env:
|
|
RUST_LOG: debug
|
|
|
|
steps:
|
|
|
|
- name: Checking out the repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/common-setup
|
|
with:
|
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
|
|
|
- name: Building import_scripts
|
|
run: |
|
|
nix build .#flake-info
|
|
|
|
- name: Try importing all custom flakes
|
|
run: |
|
|
for flake_group in flakes/**/*.toml
|
|
do
|
|
./result/bin/flake-info group "$flake_group" "$(basename "$flake_group" .toml)"
|
|
done
|