Skip to content

chore(deps-dev): bump prettier from 2.8.8 to 3.0.0 #1124

chore(deps-dev): bump prettier from 2.8.8 to 3.0.0

chore(deps-dev): bump prettier from 2.8.8 to 3.0.0 #1124

Workflow file for this run

name: Testing, building, serving
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install all npm packages
run: npm ci
- name: Lint JS code
run: npm run lint:js
- name: Lint CSS code
run: npm run lint:css
- name: Build all
run: npm run build
- name: Start server
run: |
npm run start-server > /tmp/stdout.log 2> /tmp/stderr.log &
sleep 3
curl --retry-connrefused --retry 5 http://localhost:9090 > /dev/null
- name: View some built pages
run: |
# This depends on actual content.
# Arbitrary pages picked. The tests just makes sure they 200 OK
curl --fail --silent http://localhost:9090/pages/tabbed/video.html > /dev/null
curl --fail --silent http://localhost:9090/pages/js/array-foreach.html > /dev/null
curl --fail --silent http://localhost:9090/pages/css/background.html > /dev/null
- name: Debug server's stdout and stderr if tests failed
if: failure()
run: |
echo "STDOUT..................................................."
cat /tmp/stdout.log
echo ""
echo "STDERR..................................................."
cat /tmp/stderr.log