mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
095ef64aa3
This is a backport of all of the GitHub Action versions from `master` as
of 07b2c41d2d
.
* peaceiris/actions-gh-pages: v3 -> v4
Release: https://github.com/peaceiris/actions-gh-pages/releases/tag/v4.0.0
* actions/labeler: v4 -> v5
Release: https://github.com/actions/labeler/releases/tag/v5.0.0
* DeterminateSystems/update-flake-lock: v21 -> v22
Release: https://github.com/DeterminateSystems/update-flake-lock/releases/tag/v22
Also used lowercase `v` for cachix/install-nix-action.
Signed-off-by: Sumner Evans <me@sumnerevans.com>
30 lines
907 B
YAML
30 lines
907 B
YAML
name: Test
|
|
on:
|
|
pull_request:
|
|
schedule:
|
|
- cron: "30 2 * * *"
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v27
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-23.11
|
|
- uses: cachix/cachix-action@v15
|
|
with:
|
|
name: nix-community
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
- run: |
|
|
if grep -R --exclude stdlib-extended.nix literalExample modules ; then
|
|
echo "Error: literalExample should be replaced by literalExpression" > /dev/stderr
|
|
exit 1
|
|
fi
|
|
- run: nix-build --show-trace -A docs.jsonModuleMaintainers
|
|
- run: ./format -c
|
|
- run: nix-shell --show-trace . -A install
|
|
- run: nix-shell --show-trace --arg enableBig false --pure tests -A run.all
|