Merge pull request #111 from cachix/act

Test for act
This commit is contained in:
Domen Kožar 2021-11-20 02:58:55 +03:00 committed by GitHub
commit 3db69e0239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -109,3 +109,17 @@ jobs:
nix_path: nixpkgs=channel:nixos-21.05 nix_path: nixpkgs=channel:nixos-21.05
install_url: https://releases.nixos.org/nix/nix-2.3.5/install install_url: https://releases.nixos.org/nix/nix-2.3.5/install
- run: nix-build test.nix - run: nix-build test.nix
act-support:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/setup-go@v2.1.4
with:
go-version: '^1.16'
- run: go install github.com/nektos/act@master
- 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

View File

@ -43,6 +43,8 @@ else
# "fix" the following error when running nix* # "fix" the following error when running nix*
# error: the group 'nixbld' specified in 'build-users-group' does not exist # error: the group 'nixbld' specified in 'build-users-group' does not exist
add_config "build-users-group =" add_config "build-users-group ="
mkdir -m 0755 /etc/nix
cp $workdir/nix.conf /etc/nix/nix.conf
fi fi
if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then