Skip to content

Commit

Permalink
no upgrade to puppet
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldesigndj committed Aug 27, 2023
1 parent 395e409 commit bfbbb0b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
test:
runs-on: ubuntu-latest
env:
# CURRENT_ENV: testing
# DENO_ENV: testing
# BASE_URL: http://localhost:8000
DENO_DIR: deno_dir
CHROMIUM_PATH: deno_dir/deno_puppeteer/chromium/
Expand All @@ -42,21 +42,21 @@ jobs:
# - name: Run linter
# run: deno lint

# - name: Cache Deno dependencies
# uses: actions/cache@v3
# with:
# # The Chrome install gets cached in here too...
# key: denoDeps-${{ hashFiles('deno.lock') }}
# path: ${{ env.DENO_DIR }}
- name: Cache Deno dependencies
uses: actions/cache@v3
with:
# The Chrome install gets cached in here too...
key: denoDeps-${{ hashFiles('deno.lock') }}
path: ${{ env.DENO_DIR }}

- name: Install Chromium for Puppeteer
run: deno eval "import 'npm:puppeteer/install.js'"
run: PUPPETEER_PRODUCT=chrome deno run -A https://deno.land/x/puppeteer@16.2.0/install.ts

# - name: Cache puppeteer
# uses: actions/cache@v3
# with:
# key: puppeteer_${{ runner.os }}_v16_2_0
# path: ${{ env.CHROMIUM_PATH }}
- name: Cache puppeteer
uses: actions/cache@v3
with:
key: puppeteer_${{ runner.os }}_v16_2_0
path: ${{ env.CHROMIUM_PATH }}

- name: Run tests
run: deno test -A --unstable
4 changes: 2 additions & 2 deletions test/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { assertEquals } from "$std/testing/asserts.ts"
import { delay } from "$std/async/delay.ts"
import { startFreshServer } from "$fresh/tests/test_utils.ts"
import { BASE_URL, CURRENT_ENV } from "@/utils/config.js"
// import puppeteer from "puppeteer"
import { default as puppeteer } from "npm:puppeteer"
import puppeteer from "puppeteer"
// import { default as puppeteer } from "npm:puppeteer"

const puppet_config = CURRENT_ENV === "development"
? { headless: false, defaultViewport: null }
Expand Down

0 comments on commit bfbbb0b

Please sign in to comment.