-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add a temporary workflow for testing macos gh action
- Loading branch information
1 parent
60b2960
commit 4540bce
Showing
1 changed file
with
30 additions
and
0 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,30 @@ | ||
name: mactest | ||
on: | ||
push: | ||
|
||
jobs: | ||
e2e-macos: | ||
runs-on: macos-latest | ||
needs: artifacts | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: upgrade bash # macos ships with a really old bash version that breaks use-nix-shell-action used below | ||
run: brew install bash | ||
- name: install dependencies | ||
# note: we forego default.nix and to be as close to a realistic user experience as possible | ||
# all the other dependencies are already present on the runner images, so we use those | ||
# and just install the missing ones via nix | ||
uses: cachix/install-nix-action@v22 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
extra_nix_config: | | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
- uses: rrbutani/use-nix-shell-action@v1 | ||
env: | ||
NIXPKGS_ALLOW_UNFREE: 1 # terraform uses BSL license now, so we have to enable unfree | ||
with: | ||
packages: terraform,terragrunt,terraform-docs | ||
- name: run test | ||
env: | ||
run: | | ||
bash --version |