mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 05:22:21 +01:00
Add more test cases
This commit is contained in:
parent
7fcb842097
commit
151fdae2fc
1 changed files with 36 additions and 10 deletions
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue