Skip to content

Commit ca096e0

Browse files
committed
ci: add test cases for Brioche setup with custom install paths
Signed-off-by: Jérémy Audiger <[email protected]>
1 parent c652a17 commit ca096e0

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
sed -i "s/\${WATERMARK}/${WATERMARK}/g" example-project/project.bri
3737
brioche build -p example-project -o output
3838
39-
test-setup-brioche:
39+
test-setup-brioche-with-version-override:
4040
strategy:
4141
fail-fast: false
4242
matrix:
@@ -60,3 +60,37 @@ jobs:
6060
version: ${{ matrix.version }}
6161

6262
- *verify-brioche
63+
64+
test-setup-brioche-with-install-bin-dir-override:
65+
runs-on: ubuntu-24.04
66+
steps:
67+
- name: Checkout repository
68+
uses: actions/checkout@v5
69+
70+
- name: Setup Brioche
71+
uses: ./ # Uses an action in the root directory
72+
with:
73+
install-bin-dir: ${{ runner.temp }}/brioche-bin
74+
75+
- name: Verify Brioche location
76+
run: |
77+
test -f "${{ runner.temp }}/brioche-bin/brioche"
78+
79+
- *verify-brioche
80+
81+
test-setup-brioche-with-install-root-override:
82+
runs-on: ubuntu-24.04
83+
steps:
84+
- name: Checkout repository
85+
uses: actions/checkout@v5
86+
87+
- name: Setup Brioche
88+
uses: ./ # Uses an action in the root directory
89+
with:
90+
install-root: ${{ runner.temp }}/brioche-install
91+
92+
- name: Verify Brioche location
93+
run: |
94+
ls -al "${{ runner.temp }}/brioche-install"
95+
96+
- *verify-brioche

0 commit comments

Comments
 (0)