summaryrefslogtreecommitdiff
path: root/.github/workflows/nodejs.yml
blob: 9d4c1a244cdb1976e788904de41a184e479c1d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: CI (node.js)

on: [push, pull_request]

permissions:
  contents: read

jobs:
  build:
    runs-on: ubuntu-latest
    env:
      node-version: 16

    steps:
    - uses: actions/checkout@v3
    - name: Use Node.js ${{ env.node-version }}
      uses: actions/setup-node@v3
      with:
        node-version: ${{ env.node-version }}
        cache: "npm"
    - run: npm install
    - name: Run headless test
      uses: GabrielBB/xvfb-action@v1
      with:
        run: npm test