diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64cee77..7e2ac57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -215,16 +215,42 @@ jobs: install-with-non-default-source-url: name: Install Nix using non-default source-url inputs runs-on: ubuntu-22.04 - strategy: - matrix: - version: - - "0.12.0" - - "0.14.0" - - "0.18.0" steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main + - name: Install with alternative source-url + uses: ./. with: - source-url: https://github.com/DeterminateSystems/nix-installer/releases/download/v${{ matrix.version }}/nix-installer-x86_64-linux - - name: Ensure that Nix is installed + source-url: https://github.com/DeterminateSystems/nix-installer/releases/download/v0.18.0/nix-installer-x86_64-linux + - name: Ensure that Nix is installed via alternative source-url + run: nix --version + + - name: Install with alternative source-pr + uses: ./. + with: + # https://github.com/DeterminateSystems/nix-installer/pull/938 + source-pr: "938" + - name: Ensure that Nix is installed via alternative source-pr + run: nix --version + + - name: Install with alternative source-revision + uses: ./. + with: + # https://github.com/DeterminateSystems/nix-installer/tree/ccf1d39a83099657ad324e7927676432435431e1 + source-revision: "ccf1d39a83099657ad324e7927676432435431e1" + - name: Ensure that Nix is installed via alternative source-revision + run: nix --version + + - name: Install with alternative source-branch + uses: ./. + with: + # https://github.com/DeterminateSystems/nix-installer/tree/lazy-trees + source-revision: "lazy-trees" + - name: Ensure that Nix is installed via alternative source-branch + run: nix --version + + - name: Install with alternative source-tag + uses: ./. + with: + # https://github.com/DeterminateSystems/nix-installer/tree/v0.14.0 + source-tag: "v0.14.0" + - name: Ensure that Nix is installed via alternative source-tag run: nix --version