Skip to content

Commit 9c3c65f

Browse files
committed
Update GitHub workflow tests
Broaden test OS matrix and run lint on latest Ubuntu LTS
2 parents d35abf2 + 90207f1 commit 9c3c65f

1 file changed

Lines changed: 37 additions & 28 deletions

File tree

.github/workflows/run-bats-core-tests.yml

Lines changed: 37 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,49 +9,58 @@ on:
99
branches: "**"
1010

1111
jobs:
12-
1312
lint:
14-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-24.04
1514

1615
steps:
17-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v2
1817

19-
# https://github.com/luizm/action-sh-checker
20-
- name: Run shellcheck and shfmt
21-
uses: luizm/action-sh-checker@master
22-
with:
23-
sh_checker_exclude: tests
24-
sh_checker_comment: true
18+
# https://github.com/luizm/action-sh-checker
19+
- name: Run shellcheck and shfmt
20+
uses: luizm/action-sh-checker@master
21+
with:
22+
sh_checker_exclude: tests
23+
sh_checker_comment: true
2524

2625
test:
2726
# Test on older Ubuntu with OpenSSL < 1.1 and newer with OpenSSL >= 1.1
2827
runs-on: ${{ matrix.os }}
2928
strategy:
3029
matrix:
31-
os: [ubuntu-20.04, ubuntu-22.04, macos-latest]
30+
os:
31+
[
32+
ubuntu-20.04,
33+
ubuntu-22.04,
34+
ubuntu-24.04,
35+
ubuntu-latest,
36+
macos-12,
37+
macos-13,
38+
macos-14,
39+
macos-latest,
40+
]
3241

3342
steps:
34-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35-
- uses: actions/checkout@v2
43+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
44+
- uses: actions/checkout@v2
3645

37-
- name: Print bash version
38-
run: bash --version
46+
- name: Print bash version
47+
run: bash --version
3948

40-
- name: Print OpenSSL version
41-
run: openssl version
49+
- name: Print OpenSSL version
50+
run: openssl version
4251

43-
- name: Print Git version
44-
run: git version
52+
- name: Print Git version
53+
run: git version
4554

46-
# Configure default Git branch name to suppress hint warnings
47-
- name: Configure default Git branch to "main"
48-
run: git config --global init.defaultBranch main
55+
# Configure default Git branch name to suppress hint warnings
56+
- name: Configure default Git branch to "main"
57+
run: git config --global init.defaultBranch main
4958

50-
- name: Install and set up bats-core
51-
run: |
52-
git clone https://github.com/bats-core/bats-core.git /tmp/bats-core-repo
53-
mkdir -p /tmp/bats-core
54-
bash /tmp/bats-core-repo/install.sh /tmp/bats-core
59+
- name: Install and set up bats-core
60+
run: |
61+
git clone https://github.com/bats-core/bats-core.git /tmp/bats-core-repo
62+
mkdir -p /tmp/bats-core
63+
bash /tmp/bats-core-repo/install.sh /tmp/bats-core
5564
56-
- name: Run tests
57-
run: /tmp/bats-core/bin/bats tests/
65+
- name: Run tests
66+
run: /tmp/bats-core/bin/bats tests/

0 commit comments

Comments
 (0)