Skip to content

chore(main): release 2.7.0 #1710

chore(main): release 2.7.0

chore(main): release 2.7.0 #1710

Workflow file for this run

name: Testing, building, serving
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install all npm packages
run: npm ci
- name: Lint files
run: npm test
- 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