-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor and test install podman (#563)
* chore: podman install ci tests by container matrix * feat: use package manager, not distro for installing podman * add uninstall for distros. ubuntu22 specific install script * feat: fix app package property tests * feat: full add node, start node, stop node flow in e2e tests (off for now) * chore: bump wdio minor versions * chore: add distro and version to debug info * chore: add fedora and other linux distros to e2e test containers * chore: update gha xvfb to use nodejs v20 * chore: bump 6.0.2-alpha * chore: add podman install verison in ci test
- Loading branch information
Showing
46 changed files
with
932 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: e2e-tests-linux-distros | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
e2e-build-n-test: | ||
environment: staging | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
container: [ | ||
"ubuntu:24.04", | ||
"ubuntu:23.10", | ||
"debian:12", | ||
"fedora:40", | ||
"fedora:39", | ||
"manjarolinux/base", | ||
"archlinux:latest", | ||
] | ||
container: | ||
image: ${{ matrix.container }} | ||
env: | ||
NODE_ENV: test | ||
TEST: true | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 💚 Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: 🧱 Install system dependencies | ||
run: | | ||
# Define the packages needed (git req'd by electron forge) | ||
packagesNeeded="nodejs npm git zip dpkg fakeroot" | ||
# Determine the package manager and install required packages | ||
if command -v apt-get > /dev/null 2>&1; then | ||
apt-get update | ||
apt-get install --no-install-recommends -y $packagesNeeded rpm libarchive-tools | ||
apt-get install -y \ | ||
xvfb \ | ||
zip \ | ||
wget \ | ||
ca-certificates \ | ||
libnss3-dev \ | ||
libasound2t64 \ | ||
libxss1 \ | ||
libappindicator3-1 \ | ||
libindicator7 \ | ||
xdg-utils \ | ||
fonts-liberation \ | ||
libgbm1 | ||
elif command -v dnf > /dev/null 2>&1; then | ||
dnf install -y $packagesNeeded rpmdevtools | ||
elif command -v pacman > /dev/null 2>&1; then | ||
pacman -Syu --noconfirm | ||
pacman -S --noconfirm $packagesNeeded | ||
elif command -v zypper > /dev/null 2>&1; then | ||
zypper install -y $packagesNeeded | ||
else | ||
echo "FAILED TO INSTALL PACKAGES: Package manager not found. You must manually install: $packagesNeeded" >&2 | ||
exit 1 | ||
fi | ||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: 📦 Bundle Application | ||
env: | ||
DEBUG: "*electron*" | ||
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | ||
MP_PROJECT_TOKEN: ${{ secrets.MP_PROJECT_TOKEN }} | ||
MP_PROJECT_ENV: ${{ vars.MP_PROJECT_ENV }} | ||
NICENODE_ENV: ${{ vars.NICENODE_ENV }} | ||
NO_CODE_SIGNING: true | ||
run: | | ||
npm run make | ||
- name: Setup virtual display | ||
run: | | ||
export DISPLAY=':99.0' | ||
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
- name: 🧪 Run Tests | ||
run: | | ||
npm run wdio | ||
- name: 🐛 Debug Build | ||
uses: stateful/vscode-server-action@v1 | ||
if: failure() | ||
with: | ||
timeout: '120000' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Podman Install on Linux Distros | ||
on: | ||
push: | ||
# branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
container-test-job: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
container: [ | ||
"ubuntu:24.04", | ||
"ubuntu:23.10", | ||
"debian:12", | ||
"fedora:40", | ||
"fedora:39", | ||
"manjarolinux/base", | ||
"archlinux:latest", | ||
] | ||
|
||
container: | ||
image: ${{ matrix.container }} | ||
env: | ||
NODE_ENV: test | ||
steps: | ||
- name: print os version details | ||
run: cat /etc/os-release | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: 🧱 Install Dependencies | ||
run: | | ||
npm ci | ||
- name: 🧱 Run tests | ||
run: | | ||
npm run testCi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.