Skip to content

chore(deps): migrate from jsdom to htmlparser2 #85

chore(deps): migrate from jsdom to htmlparser2

chore(deps): migrate from jsdom to htmlparser2 #85

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
# No GITHUB_TOKEN permissions, as we don't use it.
permissions: {}
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: observatory
POSTGRES_PASSWORD: observatory
POSTGRES_DB: observatory
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: .nvmrc
package-manager-cache: false
- name: Install
run: npm ci
- name: Run tests
run: npm test
env:
PGDATABASE: observatory
PGHOST: localhost
PGUSER: observatory
PGPASSWORD: observatory
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Docker
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
- name: Build Docker image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
build-args: |
GIT_SHA=${{ github.sha }}
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: ".nvmrc"
package-manager-cache: false
- name: Install
run: npm ci
- name: Run prettier
run: npx prettier --check .
- name: Run tsc
run: npm run tsc