added playwright tests #1
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 Perf Test | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set-up OCaml | |
run: | | |
sudo apt update -y | |
sudo apt --assume-yes install curl m4 opam | |
export OPAMYES=1 | |
opam init --compiler=ocaml-base-compiler.5.0.0 | |
- name: Install dependencies | |
run: | | |
eval $(opam env) | |
export OPAMYES=1 | |
make deps | |
- name: Install system dependencies | |
run: make deps | |
- name: Install project development dependencies | |
run: make dev | |
- name: Start web server in the background | |
run: make serve & | |
shell: bash | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
- name: Install Playwright | |
run: npm install playwright | |
- name: Run Playwright test script | |
run: npx playwright test tests/simple.spec.js |