Merge pull request #1 from dosyago/test-yaml #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |