Update data #2652
Workflow file for this run
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: Test site - pull_request | |
on: | |
pull_request: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: sudo apt-get update && sudo apt-get install -y nginx && sudo systemctl start nginx | |
- name: Install node.js 14 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install npm dependencies | |
run: npm install | |
- name: Run npm build | |
run: npm run build --if-present | |
- name: Copy to www | |
run: sudo rm /var/www/html/*.html && sudo cp -rf ./dist/* /var/www/html | |
- run: curl http://localhost/ | |
- run: google-chrome --headless --disable-gpu --screenshot --window-size=1280,1600 http://localhost | |
- name: 'Upload screenshot' | |
uses: actions/upload-artifact@v1 | |
with: | |
name: screenshots | |
path: ./screenshot.png |