Skip to content

Commit 01a4165

Browse files
committed
Fix all those warnings from bats
See: brokenpip3/setup-bats-libs#18
1 parent 4ebc9ac commit 01a4165

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

.github/workflows/version-base-build-test.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,23 @@ jobs:
8585
cache-from: type=gha,scope=build-base-${{ inputs.idris-version }}
8686

8787
- name: Setup Bats and Bats libs
88-
uses: brokenpip3/[email protected].1
88+
uses: brokenpip3/[email protected].2
8989
with:
90-
bats-version: '1.8.2'
90+
bats-version: '1.10.0'
9191
support-version: 0.3.0
92+
support-path: '${{ github.workspace }}/.bats/bats-support'
9293
assert-version: 2.1.0
94+
assert-path: '${{ github.workspace }}/.bats/bats-assert'
9395
file-install: false
9496
detik-install: false
9597

9698
# LIB_PATH is a env var I use in the setup() function of my bats tests
9799
# it points to the folder containing bats-assert and bats-support
98100
- name: Run Test
99-
run: |
100-
export LIB_PATH=/usr/lib/
101-
export DOCKER_IMAGE=${{ env.TAG }}
102-
bats tests/base.bats
101+
env:
102+
LIB_PATH: /usr/lib/
103+
DOCKER_IMAGE: ${{ env.TAG }}
104+
run: bats tests/base.bats
103105

104106
base-test-2:
105107
name: Test 2 Base
@@ -194,20 +196,22 @@ jobs:
194196
BASE_IMG=${{ env.BASE_TAG }}
195197
tags: ${{ env.TAG }}
196198
load: true
197-
199+
198200
- name: Setup Bats and Bats libs
199201
uses: brokenpip3/[email protected]
200202
with:
201-
bats-version: '1.8.2'
203+
bats-version: '1.10.0'
202204
support-version: 0.3.0
205+
support-path: '${{ github.workspace }}/.bats/bats-support'
203206
assert-version: 2.1.0
207+
assert-path: '${{ github.workspace }}/.bats/bats-assert'
204208
file-install: false
205209
detik-install: false
206210

207211
# LIB_PATH is a env var I use in the setup() function of my bats tests
208212
# it points to the folder containing bats-assert and bats-support
209213
- name: Run Test
210-
run: |
211-
export LIB_PATH=/usr/lib/
212-
export DOCKER_IMAGE=${{ env.TAG }}
213-
bats tests/consumer-idris.bats
214+
env:
215+
LIB_PATH: /usr/lib/
216+
DOCKER_IMAGE: ${{ env.TAG }}
217+
run: bats tests/consumer-idris.bats

.github/workflows/version-devcontainer-build-test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,22 @@ jobs:
7474
cache-from: type=gha,scope=build-devcontainer-${{ inputs.idris-lsp-version }}
7575
cache-to: type=gha,mode=max,scope=build-devcontainer-${{ inputs.idris-lsp-version }}
7676

77+
7778
- name: Setup Bats and Bats libs
7879
uses: brokenpip3/[email protected]
7980
with:
80-
bats-version: '1.8.2'
81+
bats-version: '1.10.0'
8182
support-version: 0.3.0
83+
support-path: '${{ github.workspace }}/.bats/bats-support'
8284
assert-version: 2.1.0
85+
assert-path: '${{ github.workspace }}/.bats/bats-assert'
8386
file-install: false
8487
detik-install: false
8588

8689
# LIB_PATH is a env var I use in the setup() function of my bats tests
8790
# it points to the folder containing bats-assert and bats-support
8891
- name: Run Test
89-
run: |
90-
export LIB_PATH=/usr/lib/
91-
export DOCKER_IMAGE=${{ env.TAG }}
92-
bats tests/devcontainer-idris.bats
92+
env:
93+
LIB_PATH: /usr/lib/
94+
DOCKER_IMAGE: ${{ env.TAG }}
95+
run: bats tests/devcontainer-idris.bats

0 commit comments

Comments
 (0)