Skip to content

Commit 22d52ed

Browse files
thomashohnkobenguyentCopilot
authored
Fix issue with docker build (#4980)
* Fix issue with docker build * Fix * Update .github/workflows/acceptance-tests.yml Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: kobenguyent <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 9a9442a commit 22d52ed

File tree

4 files changed

+28
-21
lines changed

4 files changed

+28
-21
lines changed

.github/workflows/acceptance-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# Install Docker Compose
3030
- name: Install Docker Compose
3131
run: |
32-
sudo apt-get update
32+
sudo apt-get update --allow-releaseinfo-change
3333
sudo apt-get install -y docker-compose
3434
3535
# Run rest tests using docker-compose

.github/workflows/playwright.yml

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
npm i --force
3636
env:
3737
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
38+
- name: Allow Release info Change
39+
run: |
40+
sudo apt-get update --allow-releaseinfo-change
3841
- name: Install browsers and deps
3942
run: npx playwright install && npx playwright install-deps
4043
- name: check

.github/workflows/plugin.yml

+22-20
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,32 @@ env:
1515

1616
jobs:
1717
build:
18-
1918
runs-on: ubuntu-22.04
2019

2120
strategy:
2221
matrix:
2322
node-version: [20.x]
2423

2524
steps:
26-
- uses: actions/checkout@v4
27-
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v4
29-
with:
30-
node-version: ${{ matrix.node-version }}
31-
- uses: shivammathur/setup-php@v2
32-
with:
33-
php-version: 7.4
34-
- name: npm install
35-
run: |
36-
npm i --force
37-
env:
38-
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
39-
- name: Install browsers and deps
40-
run: npx playwright install chromium && npx playwright install-deps
41-
- name: start a server
42-
run: "php -S 127.0.0.1:8000 -t test/data/app &"
43-
- name: run plugin tests
44-
run: npm run test:plugin
25+
- uses: actions/checkout@v4
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
- uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: 7.4
33+
- name: npm install
34+
run: |
35+
npm i --force
36+
env:
37+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
38+
- name: Allow Release info Change
39+
run: |
40+
sudo apt-get update --allow-releaseinfo-change
41+
- name: Install browsers and deps
42+
run: npx playwright install chromium && npx playwright install-deps
43+
- name: start a server
44+
run: 'php -S 127.0.0.1:8000 -t test/data/app &'
45+
- name: run plugin tests
46+
run: npm run test:plugin

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
FROM mcr.microsoft.com/playwright:v1.48.1-noble
33
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
44

5+
RUN apt-get update --allow-releaseinfo-change
6+
57
# Installing the pre-required packages and libraries
68
RUN apt-get update && \
79
apt-get install -y libgtk2.0-0 \

0 commit comments

Comments
 (0)