Skip to content

Commit 856ae59

Browse files
committed
ci: try to fix tests, use login shell for load profile
1 parent c483fff commit 856ae59

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/e2e_test_linux.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
name: E2E tests on Linux
22

3-
# on:
4-
# push:
5-
# branches: [main]
6-
# pull_request:
7-
# workflow_dispatch:
8-
# schedule:
9-
# # Runs at 12am UTC
10-
# - cron: '0 0 * * *'
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
schedule:
8+
# Runs at 12am UTC
9+
- cron: '0 0 * * *'
1110

1211
jobs:
1312
e2e_tests:
@@ -20,6 +19,7 @@ jobs:
2019
- uses: actions/checkout@v4
2120

2221
- name: install vfox (Linux)
22+
shell: bash
2323
run: |
2424
echo "deb [trusted=yes] https://apt.fury.io/versionfox/ /" | sudo tee /etc/apt/sources.list.d/versionfox.list
2525
sudo apt-get update
@@ -40,6 +40,7 @@ jobs:
4040
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.2-dev libwxgtk-webview3.2-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
4141
4242
- name: install Erlang/OTP by vfox-erlang plugin (Linux)
43+
shell: bash -l {0} # use login shell to load .bashrc: https://github.com/orgs/community/discussions/25061
4344
run: |
4445
export MAKEFLAGS=-j4
4546
vfox install erlang@26.2.3

.github/workflows/e2e_test_windows.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ jobs:
4040
# vfox activate pwsh | Out-File -FilePath vfox_env.ps1
4141
- name: test installation
4242
if: runner.os == 'Windows'
43-
shell: powershell -NoExit -command ". '{0}'"
43+
shell: powershell -NoExit -Interactive -Command ". '{0}'"
4444
run: |
4545
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
4646
# cat vfox_env.ps1
4747
# & .\vfox_env.ps1
4848
echo $env:__VFOX_SHELL
4949
echo $env:__VFOX_CURTMPPATH
5050
vfox use -g erlang@25.3.2.12
51-
& .\vfox_env.ps1
51+
# & .\vfox_env.ps1
5252
echo "===============PATH==============="
5353
echo $env:PATH
5454
echo "===============PATH==============="

0 commit comments

Comments
 (0)