install-nix-action/.github/workflows/test.yml

126 lines
3.5 KiB
YAML
Raw Normal View History

2019-10-03 00:06:28 +10:00
name: "install-nix-action test"
2019-09-30 05:52:02 +10:00
on:
pull_request:
push:
2020-09-22 00:41:22 +10:00
branches:
- master
2020-05-29 00:25:05 +10:00
2019-09-30 05:52:02 +10:00
jobs:
2020-05-27 21:17:01 +10:00
simple-build:
2019-09-30 05:52:02 +10:00
strategy:
matrix:
2020-05-26 22:34:45 +10:00
os: [ubuntu-latest, macos-latest]
2019-09-30 05:52:02 +10:00
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
2019-09-30 05:52:02 +10:00
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-20.03
2020-05-27 21:17:01 +10:00
- run: nix-env -iA cachix -f https://cachix.org/api/v1/install
2019-11-19 22:03:06 +11:00
- run: cat /etc/nix/nix.conf
# cachix should be available and be able to configure a cache
2019-11-19 22:35:01 +11:00
- run: cachix use cachix
2020-05-12 20:42:14 +10:00
- run: nix-build test.nix
2020-05-29 00:25:05 +10:00
custom-nix-path:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
2020-05-29 00:25:05 +10:00
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-20.03
- run: test $NIX_PATH == "nixpkgs=channel:nixos-20.03"
- run: nix-build test.nix
2020-08-26 02:13:35 +10:00
extra-nix-config:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
2020-08-26 02:13:35 +10:00
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-20.03
2020-08-26 02:13:35 +10:00
extra_nix_config: |
2020-08-26 02:20:10 +10:00
sandbox = relaxed
2020-08-26 02:13:35 +10:00
- run: cat /etc/nix/nix.conf
- run: nix-build test.nix --arg noChroot true
2020-11-04 22:19:16 +11:00
flakes:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
2020-11-04 22:19:16 +11:00
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
2021-06-24 02:29:43 +10:00
install_url: https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
2021-04-02 23:46:47 +11:00
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
2020-11-04 22:19:16 +11:00
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
2020-11-04 22:19:16 +11:00
- run: nix flake show github:NixOS/nixpkgs
2021-02-22 01:00:04 +11:00
installer-options:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
2021-02-22 01:00:04 +11:00
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
2021-06-24 02:29:43 +10:00
nix_path: nixpkgs=channel:nixos-21.05
install_url: https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
2021-04-02 23:46:47 +11:00
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
2021-02-22 01:00:04 +11:00
- run: nix-build test.nix
oldest-supported-installer:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Install Nix
uses: ./
with:
nix_path: nixpkgs=channel:nixos-21.05
install_url: https://releases.nixos.org/nix/nix-2.3.8/install
- run: nix-build test.nix
2021-11-16 01:09:45 +11:00
act-support:
2021-11-16 01:09:45 +11:00
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2.2.0
with:
go-version: '^1.16'
- run: go install github.com/nektos/act@latest
- run: docker pull ghcr.io/catthehacker/ubuntu:js-20.04
- run: ~/go/bin/act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-20.04 push -j simple-build