From ef5fc90630cf8cdd373b0e6b09030f08e48ea92a Mon Sep 17 00:00:00 2001 From: Thomas Hohn Date: Mon, 28 Apr 2025 19:37:50 +0200 Subject: [PATCH 1/3] Fix issue with docker build --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7d4f6bc9d..d637da4b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,8 @@ FROM mcr.microsoft.com/playwright:v1.48.1-noble ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true +RUN apt-get update --allow-releaseinfo-change + # Installing the pre-required packages and libraries RUN apt-get update && \ apt-get install -y libgtk2.0-0 \ From a47261ca9df380cd0ec49a923164f2d266716bd2 Mon Sep 17 00:00:00 2001 From: Thomas Hohn Date: Mon, 28 Apr 2025 19:50:12 +0200 Subject: [PATCH 2/3] Fix --- .github/workflows/acceptance-tests.yml | 1 + .github/workflows/playwright.yml | 3 ++ .github/workflows/plugin.yml | 42 ++++++++++++++------------ 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index 63107de63..d32a2ced0 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -29,6 +29,7 @@ jobs: # Install Docker Compose - name: Install Docker Compose run: | + sudo apt-get update --allow-releaseinfo-change sudo apt-get update sudo apt-get install -y docker-compose diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 1004d072f..d00fe7196 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -35,6 +35,9 @@ jobs: npm i --force env: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true + - name: Allow Release info Change + run: | + sudo apt-get update --allow-releaseinfo-change - name: Install browsers and deps run: npx playwright install && npx playwright install-deps - name: check diff --git a/.github/workflows/plugin.yml b/.github/workflows/plugin.yml index ec456fa7f..6795da6bf 100644 --- a/.github/workflows/plugin.yml +++ b/.github/workflows/plugin.yml @@ -15,7 +15,6 @@ env: jobs: build: - runs-on: ubuntu-22.04 strategy: @@ -23,22 +22,25 @@ jobs: node-version: [20.x] steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - uses: shivammathur/setup-php@v2 - with: - php-version: 7.4 - - name: npm install - run: | - npm i --force - env: - PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true - - name: Install browsers and deps - run: npx playwright install chromium && npx playwright install-deps - - name: start a server - run: "php -S 127.0.0.1:8000 -t test/data/app &" - - name: run plugin tests - run: npm run test:plugin + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + - name: npm install + run: | + npm i --force + env: + PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true + - name: Allow Release info Change + run: | + sudo apt-get update --allow-releaseinfo-change + - name: Install browsers and deps + run: npx playwright install chromium && npx playwright install-deps + - name: start a server + run: 'php -S 127.0.0.1:8000 -t test/data/app &' + - name: run plugin tests + run: npm run test:plugin From d2cb5a3fedb2e067b9788cbd3b60635350933ae7 Mon Sep 17 00:00:00 2001 From: kobenguyent <7845001+kobenguyent@users.noreply.github.com> Date: Wed, 30 Apr 2025 16:53:16 +0200 Subject: [PATCH 3/3] Update .github/workflows/acceptance-tests.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/acceptance-tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index d32a2ced0..92315d047 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -30,7 +30,6 @@ jobs: - name: Install Docker Compose run: | sudo apt-get update --allow-releaseinfo-change - sudo apt-get update sudo apt-get install -y docker-compose # Run rest tests using docker-compose