Skip to content

Commit

Permalink
ci: Update E2E command for latest ubuntu runners (#10850)
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree authored Dec 10, 2024
1 parent 1df7cd7 commit d33b3b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
e2e:
if: github.ref_name != 'i18n/crowdin'

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

timeout-minutes: 30

Expand All @@ -53,7 +53,7 @@ jobs:
- 6379:6379
options: --entrypoint redis-server
postgres:
image: postgres:13.16
image: postgres:15.10
env:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
Expand All @@ -67,14 +67,15 @@ jobs:
- name: Update apt
run: sudo apt-get update || exit 0

- name: Install Cypress dependencies
run: sudo apt-get install --no-install-recommends -y libgtk2.0-0 libgtk-3-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb fonts-arphic-bkai00mp fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp fonts-arphic-gkai00mp fonts-arphic-ukai fonts-arphic-uming ttf-wqy-zenhei ttf-wqy-microhei xfonts-wqy

- name: Install postgresql-client
run: sudo apt-get install -y postgresql-client

- name: Install graphicsmagick
run: sudo apt-get install -y graphicsmagick
- name: Install dependencies
run: |
sudo apt-get install \
`# Cypress dependencies - see https://docs.cypress.io/app/get-started/install-cypress#UbuntuDebian` \
libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb \
`# Postgres client` \
postgresql-client-16 \
`# GraphicsMagick (not sure if needed)` \
graphicsmagick
- name: Install stripe-cli
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_e2e_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [ -z "$PDF_FOLDER" ]; then
else
cd $PDF_FOLDER
fi
PORT=3002 npm start &
PORT=3002 OPENSSL_CONF=/dev/null npm start &
PDF_PID=$!
cd -

Expand Down

0 comments on commit d33b3b3

Please sign in to comment.