Skip to content

Commit 767afdb

Browse files
chore: use brew to install dependencies in macos tests
1 parent cd9e589 commit 767afdb

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ jobs:
8989
steps:
9090
- uses: actions/checkout@v4
9191
- name: install dependencies
92-
# note: we forego default.nix and to be as close to a realistic user experience as possible
93-
# all the other dependencies are already present on the runner images, so we use those
94-
# and just install the missing ones via nix
92+
# note: we forego default.nix and to be as close to a realistic user experience as possible.
93+
# unfortunately ubuntu doesn't package terraform and related tools very well, so we use nix for those.
94+
# All the other dependencies are already present on the runner images, so we use those.
9595
uses: cachix/install-nix-action@v22
9696
with:
9797
nix_path: nixpkgs=channel:nixos-unstable
@@ -114,20 +114,14 @@ jobs:
114114
needs: artifacts
115115
steps:
116116
- uses: actions/checkout@v4
117-
- name: install dependencies
118117
# note: we forego default.nix and to be as close to a realistic user experience as possible
119118
# all the other dependencies are already present on the runner images, so we use those
120-
# and just install the missing ones via nix
121-
uses: cachix/install-nix-action@v22
122-
with:
123-
nix_path: nixpkgs=channel:nixos-unstable
124-
extra_nix_config: |
125-
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
126-
- uses: rrbutani/use-nix-shell-action@v1
127-
env:
128-
NIXPKGS_ALLOW_UNFREE: 1 # terraform uses BSL license now, so we have to enable unfree
129-
with:
130-
packages: terraform,terragrunt,terraform-docs
119+
# and just install the missing ones via nix, as these are not available in standard uubunt
120+
# note: we forego default.nix and to be as close to a realistic user experience as possible
121+
# and just install the missing ones via brew as many of our users would do
122+
# all the other dependencies are already present on the runner images, so we use those
123+
- name: install dependencies
124+
run: brew install terraform terragrunt terraform-docs
131125
- name: run test
132126
env:
133127
COLLIE_VERSION: ${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)