You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
475 B

name: Test
on:
pull_request:
push:
branches:
- "main"
jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build docker image
run: docker build -t pagedmedia/pagedjs .
- name: Run tests
run: docker run --ipc=host pagedmedia/pagedjs npm test
- name: Run specs
run: docker run --ipc=host pagedmedia/pagedjs npm run specs