-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into phx-1356-add-eval-api-to-nri-redis
- Loading branch information
Showing
3 changed files
with
52 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Run tests and push shell closures | ||
on: | ||
pull_request: | ||
branches: | ||
- "trunk" | ||
push: | ||
branches: | ||
- "trunk" | ||
|
||
# We also provide a way to run this manually, if needed. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
matrix: | ||
runner: | ||
- os: macos-14 # macos sonoma on m1; 3 vcpu, 7 GB memory | ||
base-nixpkgs-channel: nixpkgs-23.11-darwin | ||
- os: ubuntu-22.04 # linux x86_64; 4 vcpu, 16 GB memory | ||
base-nixpkgs-channel: nixos-23.11 | ||
ghc: | ||
- ghc-8-10 | ||
- ghc-9-2 | ||
- ghc-9-4 | ||
runs-on: ${{ matrix.runner.os }} | ||
steps: | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v26 | ||
with: | ||
nix_path: nixpkgs=channel:${{ matrix.runner.base-nixpkgs-channel }} | ||
extra_nix_config: | | ||
extra-substituters = https://nri.cachix.org https://nix-script.cachix.org | ||
trusted-public-keys = nri.cachix.org-1:9/BMj3Obc+uio3O5rYGT+egHzkBzDunAzlZZfhCGj6o= nix-script.cachix.org-1:czo3tF6XERpkDdMd6m84XjmgeHQXNeIooSt7b0560+c= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | ||
- name: Install cachix | ||
run: nix-env -f '<nixpkgs>' -iA cachix | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run tests and push shell closures | ||
run: cachix watch-exec nri -- nix-shell shell-${{ matrix.ghc }}.nix --run "./run-tests.sh" | ||
env: | ||
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} | ||
PGPORT: "8088" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters