Skip to content

Update GitHub actions #967

Update GitHub actions

Update GitHub actions #967

Workflow file for this run

name: CI
on:
- pull_request
- push
jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- run: npm ci
- run: npx xo
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- run: npm ci
- run: npm run test:unit
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
- name: Ensure that test URLs aren't included in the built file
run: '! grep http distribution/index.js'