Skip to content

Commit

Permalink
Merge pull request #1 from dosyago/test-yaml
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
o0101 committed Jul 23, 2023
2 parents 1cad52b + 660d893 commit afea2aa
Show file tree
Hide file tree
Showing 4 changed files with 809 additions and 211 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm ci

- name: Install ngrok
run: npm install ngrok -g

- name: Start server & ngrok tunnel
run: |
npm start &
sleep 10
ngrok http 8080 &
sleep 10
- name: Get ngrok public URL
run: |
curl http://localhost:4040/api/tunnels | jq -r '.tunnels[0].public_url'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ With, my friend, the following ingenious idea:
Note that you may first want to export the following environment variables (change depending on your local Chrome-compatible browser binary path), this skips the lengthy and bandwidth expensive (and npm cache expensive, poor little old npm!) download of chromium endemic to puppeteer:
```shell
$ export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
$ export PUPPETEER_EXECUTABLE_PATH=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
```
Then you can get into it quickly, as follows.
Expand Down
Loading

0 comments on commit afea2aa

Please sign in to comment.