From 8f1a97dc67901adf67237302b8bda36b5676937d Mon Sep 17 00:00:00 2001 From: Guilherme Mangabeira Gregio Date: Fri, 16 Feb 2024 20:06:29 -0300 Subject: [PATCH] chore: add chorme to docker --- .github/actions/replay/Dockerfile | 2 -- .github/actions/replay/puppeteer.config.js | 9 --------- .github/workflows/on_prs.yaml | 5 +++-- 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 .github/actions/replay/puppeteer.config.js diff --git a/.github/actions/replay/Dockerfile b/.github/actions/replay/Dockerfile index 15623cd..b4aaeeb 100644 --- a/.github/actions/replay/Dockerfile +++ b/.github/actions/replay/Dockerfile @@ -1,10 +1,8 @@ FROM node:iron-alpine RUN npm install -g puppeteer @puppeteer/replay -RUN puppeteer browsers install chrome COPY entrypoint.sh /entrypoint.sh -COPY puppeteer.config.js /puppeteer.config.js ENTRYPOINT ["/entrypoint.sh"] diff --git a/.github/actions/replay/puppeteer.config.js b/.github/actions/replay/puppeteer.config.js deleted file mode 100644 index 40e9d6c..0000000 --- a/.github/actions/replay/puppeteer.config.js +++ /dev/null @@ -1,9 +0,0 @@ -const { join } = require("path"); - -/** - * @type {import("puppeteer").Configuration} - */ -module.exports = { - // Changes the cache location for Puppeteer. - cacheDirectory: join(__dirname, ".cache", "puppeteer"), -}; diff --git a/.github/workflows/on_prs.yaml b/.github/workflows/on_prs.yaml index bc3d39e..1436d9e 100644 --- a/.github/workflows/on_prs.yaml +++ b/.github/workflows/on_prs.yaml @@ -31,10 +31,11 @@ jobs: with: fetch-depth: 0 + - uses: browser-actions/setup-chrome@v1 + id: setup-chrome + - name: Replay uses: ./.github/actions/replay - env: - PUPPETEER_CACHE_DIR: /root/.cache/puppeteer with: args: user-flows