-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 884 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
name: test
on:
push:
jobs:
linux:
runs-on: ubuntu-latest
env:
XDG_CONFIG_HOME: ${{ github.workspace }}
steps:
- uses: actions/checkout@v3
- run: make nix-pkgs OS=linux devShell=''
- run: . ./nix/load-linux.sh && make test -o setup-nix OS=linux
- run: . ./nix/load-linux.sh && sudo -E make setup-linux -o setup-nix OS=linux
# TODO having problems with zsh being available
# can't set $PATH correctly
# - run: . ./nix/load-linux.sh && sudo -E make js python OS=linux
macos:
runs-on: macos-latest
env:
XDG_CONFIG_HOME: ${{ github.workspace }}
NIXPKGS_ALLOW_BROKEN: 1
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: make nix-pkgs OS=macos
- run: . ./nix/load-macos.sh && make test -o setup-nix OS=macos