Skip to content

Commit 135c58b

Browse files
authored
feat: update bats-core to 1.9.0 and bats-assert to 2.1.0 (#67)
* feat: update bats-core to 1.9.0 and bats-assert to 2.1.0 * ci: check contents of tap file * ci: switch to junit reporting for bats
1 parent 96e3436 commit 135c58b

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM ubuntu@sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf
22

3-
ARG BATS_VERSION=1.8.0
3+
ARG BATS_VERSION=1.9.0
44
ARG CLANG_VERSION=15
55
ARG GCC_VERSION=10
66
ARG MULL_VERSION=0.20.0
@@ -78,7 +78,7 @@ RUN batstmp="$(mktemp -d /tmp/bats-core-${BATS_VERSION}.XXXX)" \
7878
&& bash "${batstmp}/bats-core-${BATS_VERSION}/install.sh" /usr/local \
7979
&& rm -rf "${batstmp}" \
8080
&& git -C /usr/local clone -b v0.3.0 https://github.com/bats-core/bats-support.git \
81-
&& git -C /usr/local clone -b v2.0.0 https://github.com/bats-core/bats-assert.git
81+
&& git -C /usr/local clone -b v2.1.0 https://github.com/bats-core/bats-assert.git
8282

8383
# Update all tools alternatives to the correct version
8484
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-${GCC_VERSION} 20 \

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
- name: Run Tests
3232
run: |
3333
set -Eeuo pipefail
34-
docker run --rm --mount type=bind,src="$(pwd)/test",dst=/ws -w /ws ${{ github.repository }}:test bats --formatter tap testsuite.bats | tee test-report.tap
35-
- uses: pcolby/tap-summary@7c888ca2631920c34b230b256d8edec29dade05e # v1.0.1
34+
docker run --rm --mount type=bind,src="$(pwd)/test",dst=/ws -w /ws ${{ github.repository }}:test bats --formatter junit testsuite.bats | tee test-report.xml
35+
- uses: test-summary/action@62bc5c68de2a6a0d02039763b8c754569df99e3f # v2.1
3636
with:
37-
path: test-report.tap
37+
paths: test-report.xml
38+
show: all

0 commit comments

Comments
 (0)