Skip to content

Bump body-parser from 1.20.2 to 1.20.3 #115

Bump body-parser from 1.20.2 to 1.20.3

Bump body-parser from 1.20.2 to 1.20.3 #115

Workflow file for this run

name: Test, Build and Deploy
on:
push:
branches: ['**']
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install packages
run: yarn install
- name: Run tests
run: |
sudo apt-get install xvfb
xvfb-run --auto-servernum yarn test
- name: Report test results
uses: mikepenz/action-junit-report@v3
with:
report_paths: '**/TESTS-*.xml'
- name: Build for GitHub pages
run: |
yarn build-gh-pages
cp 404header.html dist/sr-traffic/404.html
cat dist/sr-traffic/index.html >> dist/sr-traffic/404.html
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: dist/sr-traffic
deploy:
needs: test-and-build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download build artifacts
uses: actions/[email protected]
with:
name: build-artifacts
path: dist/sr-traffic
- name: Deploy to gh-pages branch
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist/sr-traffic