Add more test cases

This commit is contained in:
Luc Perkins 2024-05-16 21:02:46 -03:00
parent 7fcb842097
commit 151fdae2fc
No known key found for this signature in database
GPG key ID: 16DB1108FB591835

View file

@ -215,16 +215,42 @@ jobs:
install-with-non-default-source-url: install-with-non-default-source-url:
name: Install Nix using non-default source-url inputs name: Install Nix using non-default source-url inputs
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
strategy:
matrix:
version:
- "0.12.0"
- "0.14.0"
- "0.18.0"
steps: steps:
- uses: actions/checkout@v4 - name: Install with alternative source-url
- uses: DeterminateSystems/nix-installer-action@main uses: ./.
with: with:
source-url: https://github.com/DeterminateSystems/nix-installer/releases/download/v${{ matrix.version }}/nix-installer-x86_64-linux source-url: https://github.com/DeterminateSystems/nix-installer/releases/download/v0.18.0/nix-installer-x86_64-linux
- name: Ensure that Nix is installed - 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 run: nix --version