Skip to content

Commit 523e242

Browse files
committed
Add fish shell testing, make a zshenv file that redirect to zprofile to mimic zsh login shell
1 parent c1cdd20 commit 523e242

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,27 @@ jobs:
8383
image: "ubuntu:24.04"
8484
steps:
8585
- name: Prepare System
86-
run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install ca-certificates gpg tzdata zsh && chsh -s /bin/zsh
86+
run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install ca-certificates gpg tzdata zsh && chsh -s /bin/zsh && echo '. /root/.zprofile' > /root/.zshenv
87+
- name: Download Release
88+
uses: actions/download-artifact@v4
89+
with:
90+
name: swiftly-release-x86_64
91+
- name: Download Tests
92+
uses: actions/download-artifact@v4
93+
with:
94+
name: swiftly-tests-x86_64
95+
- name: Extract and Run Workflow Tests
96+
run: cp swiftly-*.tar.gz /root/swiftly.tar.gz && cp test-swiftly.tar.gz /root && cd /root && tar zxf test-swiftly.tar.gz && SWIFTLY_SYSTEM_MUTATING=1 ./swiftlyPackageTests.xctest SwiftlyTests.E2ETests/testAutomatedWorkflow
97+
98+
releasetestzsh:
99+
name: Test Release FISH
100+
needs: releasebuildcheck
101+
runs-on: ubuntu-latest
102+
container:
103+
image: "ubuntu:24.04"
104+
steps:
105+
- name: Prepare System
106+
run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install ca-certificates gpg tzdata fish && chsh -s /bin/fish
87107
- name: Download Release
88108
uses: actions/download-artifact@v4
89109
with:

0 commit comments

Comments
 (0)