Skip to content

Commit 26bea43

Browse files
committed
Matrix the shells for the test release checks
1 parent d259458 commit 26bea43

File tree

1 file changed

+10
-42
lines changed

1 file changed

+10
-42
lines changed

.github/workflows/pull_request.yml

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -67,54 +67,22 @@ jobs:
6767
retention-days: 1
6868

6969
releasetest:
70-
name: Test Release
71-
needs: releasebuildcheck
72-
runs-on: ubuntu-latest
73-
container:
74-
image: "ubuntu:24.04"
75-
steps:
76-
- name: Prepare System
77-
run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install ca-certificates gpg tzdata
78-
- name: Download Release
79-
uses: actions/download-artifact@v4
80-
with:
81-
name: swiftly-release-x86_64
82-
- name: Download Tests
83-
uses: actions/download-artifact@v4
84-
with:
85-
name: swiftly-tests-x86_64
86-
- name: Extract and Run Workflow Tests
87-
run: cp swiftly-*.tar.gz /root/swiftly.tar.gz && cp test-swiftly-*.tar.gz /root && cd /root && tar zxf test-swiftly-*.tar.gz && ./test-swiftly -y ./swiftly.tar.gz
88-
89-
releasetestzsh:
90-
name: Test Release ZSH
91-
needs: releasebuildcheck
92-
runs-on: ubuntu-latest
93-
container:
94-
image: "ubuntu:24.04"
95-
steps:
96-
- name: Prepare System
97-
run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install ca-certificates gpg tzdata zsh && chsh -s /bin/zsh
98-
- name: Download Release
99-
uses: actions/download-artifact@v4
100-
with:
101-
name: swiftly-release-x86_64
102-
- name: Download Tests
103-
uses: actions/download-artifact@v4
104-
with:
105-
name: swiftly-tests-x86_64
106-
- name: Extract and Run Workflow Tests
107-
run: cp swiftly-*.tar.gz /root/swiftly.tar.gz && cp test-swiftly-*.tar.gz /root && cd /root && tar zxf test-swiftly-*.tar.gz && ./test-swiftly -y ./swiftly.tar.gz
108-
109-
releasetestfish:
110-
name: Test Release FISH
70+
name: Test Release / ${{matrix.shell-pkg}}
11171
needs: releasebuildcheck
11272
runs-on: ubuntu-latest
73+
strategy:
74+
fail-fast: false
75+
matrix:
76+
shell: [
77+
{"shell-pkg": "bash", "shell-bin": "/bin/bash"},
78+
{"shell-pkg": "zsh", "shell-bin": "/bin/zsh"},
79+
{"shell-pkg": "fish", "shell-bin": "/bin/fish"}
80+
]
11381
container:
11482
image: "ubuntu:24.04"
11583
steps:
11684
- name: Prepare System
117-
run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install ca-certificates gpg tzdata fish && chsh -s /bin/fish
85+
run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install ca-certificates gpg tzdata ${{matrix.shell-pkg}} && chsh -s ${{matrix.shell-bin}}
11886
- name: Download Release
11987
uses: actions/download-artifact@v4
12088
with:

0 commit comments

Comments
 (0)