2020-10-12 00:22:58 +00:00
|
|
|
name: Test
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: "30 2 * * *"
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
strategy:
|
2021-11-04 16:42:44 +00:00
|
|
|
fail-fast: false
|
2020-10-12 00:22:58 +00:00
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2024-01-05 11:06:15 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-06-04 18:23:39 +00:00
|
|
|
- uses: cachix/install-nix-action@v27
|
2020-10-12 00:22:58 +00:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2021-12-03 05:30:34 +00:00
|
|
|
- run: |
|
|
|
|
if grep -R --exclude stdlib-extended.nix literalExample modules ; then
|
|
|
|
echo "Error: literalExample should be replaced by literalExpression" > /dev/stderr
|
|
|
|
exit 1
|
|
|
|
fi
|
2023-08-08 10:19:01 +00:00
|
|
|
- run: nix-build --show-trace -A docs.jsonModuleMaintainers
|
2021-07-02 22:36:30 +00:00
|
|
|
- run: ./format -c
|
2023-08-08 10:19:01 +00:00
|
|
|
- run: nix-shell --show-trace . -A install
|
2024-06-04 18:23:39 +00:00
|
|
|
- run: yes | home-manager -I home-manager=. uninstall
|
2023-08-08 10:19:01 +00:00
|
|
|
- run: nix-shell --show-trace --arg enableBig false --pure tests -A run.all
|