2021-11-17 08:12:49 +03:00
|
|
|
name: "Test dream2nix"
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2022-03-27 18:11:32 +03:00
|
|
|
tests-examples:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
2022-08-31 13:20:59 +03:00
|
|
|
- uses: cachix/install-nix-action@v17
|
2022-03-27 18:11:32 +03:00
|
|
|
with:
|
2022-08-31 13:20:59 +03:00
|
|
|
# version 2.11.0
|
|
|
|
install_url: https://nixos-nix-install-tests.cachix.org/serve/8i0c4nnvddybdq6a684ffybc5p7ziif0/install
|
2022-03-27 18:11:32 +03:00
|
|
|
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
2022-08-31 13:20:59 +03:00
|
|
|
max-jobs = 10
|
2022-03-27 18:11:32 +03:00
|
|
|
- uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: nix-community
|
2022-10-31 16:30:43 +03:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2022-03-27 18:11:32 +03:00
|
|
|
|
2022-08-24 14:14:07 +03:00
|
|
|
- run: JOBS=10 nix run .#tests-examples
|
2022-03-27 18:11:32 +03:00
|
|
|
|
2021-11-20 07:10:42 +03:00
|
|
|
tests-pure:
|
2021-11-17 08:12:49 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
2022-08-31 13:20:59 +03:00
|
|
|
- uses: cachix/install-nix-action@v17
|
2021-11-17 08:12:49 +03:00
|
|
|
with:
|
2022-08-31 13:20:59 +03:00
|
|
|
install_url: https://nixos-nix-install-tests.cachix.org/serve/8i0c4nnvddybdq6a684ffybc5p7ziif0/install
|
2021-11-17 08:12:49 +03:00
|
|
|
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
2022-08-31 13:20:59 +03:00
|
|
|
max-jobs = 10
|
2021-11-17 08:38:07 +03:00
|
|
|
- uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: nix-community
|
2022-10-31 16:30:43 +03:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2021-11-17 08:12:49 +03:00
|
|
|
|
|
|
|
- run: nix flake check
|
|
|
|
|
2022-08-11 22:31:57 +03:00
|
|
|
tests-integration:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
2022-08-31 13:20:59 +03:00
|
|
|
- uses: cachix/install-nix-action@v17
|
2022-08-11 22:31:57 +03:00
|
|
|
with:
|
2022-08-31 13:20:59 +03:00
|
|
|
install_url: https://nixos-nix-install-tests.cachix.org/serve/8i0c4nnvddybdq6a684ffybc5p7ziif0/install
|
2022-08-11 22:31:57 +03:00
|
|
|
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
2022-08-31 13:20:59 +03:00
|
|
|
max-jobs = 10
|
2022-08-17 23:30:04 +03:00
|
|
|
- uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: nix-community
|
2022-10-31 16:30:43 +03:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2022-08-11 22:31:57 +03:00
|
|
|
|
2022-08-24 14:14:07 +03:00
|
|
|
- run: JOBS=10 nix run .#tests-integration
|
2021-11-20 07:10:42 +03:00
|
|
|
|
2022-11-14 20:51:09 +03:00
|
|
|
tests-integration-d2n-flakes:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
|
|
|
- uses: cachix/install-nix-action@v17
|
|
|
|
with:
|
|
|
|
install_url: https://nixos-nix-install-tests.cachix.org/serve/8i0c4nnvddybdq6a684ffybc5p7ziif0/install
|
|
|
|
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
max-jobs = 10
|
|
|
|
- uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: nix-community
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
|
|
|
|
- run: JOBS=10 nix run .#tests-integration-d2n-flakes
|
|
|
|
|
2021-11-20 07:10:42 +03:00
|
|
|
tests-unit-nix:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
2022-08-31 13:20:59 +03:00
|
|
|
- uses: cachix/install-nix-action@v17
|
2021-11-20 07:10:42 +03:00
|
|
|
with:
|
2022-08-31 13:20:59 +03:00
|
|
|
install_url: https://nixos-nix-install-tests.cachix.org/serve/8i0c4nnvddybdq6a684ffybc5p7ziif0/install
|
2021-11-20 07:10:42 +03:00
|
|
|
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
2022-08-31 13:20:59 +03:00
|
|
|
max-jobs = 10
|
2022-08-24 14:14:07 +03:00
|
|
|
- uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: nix-community
|
2022-10-31 16:30:43 +03:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2021-11-20 07:10:42 +03:00
|
|
|
|
|
|
|
- run: nix run .#tests-unit
|
2022-03-07 13:51:08 +03:00
|
|
|
|
|
|
|
tests-format:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
2022-08-31 13:20:59 +03:00
|
|
|
- uses: cachix/install-nix-action@v17
|
2022-03-07 13:51:08 +03:00
|
|
|
with:
|
2022-08-31 13:20:59 +03:00
|
|
|
install_url: https://nixos-nix-install-tests.cachix.org/serve/8i0c4nnvddybdq6a684ffybc5p7ziif0/install
|
2022-03-07 13:51:08 +03:00
|
|
|
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
2022-08-31 13:20:59 +03:00
|
|
|
max-jobs = 10
|
2022-10-14 01:21:26 +03:00
|
|
|
- uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: nix-community
|
2022-10-31 16:30:43 +03:00
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
2022-03-07 13:51:08 +03:00
|
|
|
|
|
|
|
- run: nix run .#format -- --fail-on-change
|