Team: Add zaproxy #3934
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@v4 | |
- run: sudo apt-get update && sudo apt-get install -y nginx && sudo systemctl start nginx | |
- name: Install node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- 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 --fail-with-body http://localhost/ | |
- run: google-chrome --headless --disable-gpu --screenshot --window-size=1280,1600 http://localhost | |
- name: 'Upload screenshot' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: screenshots | |
path: ./screenshot.png |