expose latest NATS message sequence number as metric #60
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: lint & test | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
# make this workflow callable from other workflows | |
workflow_call: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['22'] | |
postgis-docker-tag: | |
- '14-3.4-alpine' | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup Node v${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: install sponge (moreutils) | |
run: sudo apt install -y moreutils | |
- name: install & start PostgreSQL with PostGIS | |
run: | | |
docker run -d \ | |
-e POSTGRES_USER=$PGUSER -e POSTGRES_PASSWORD=$PGPASSWORD -e POSTGRES_DB=$PGDATABASE \ | |
-p 5432:5432 postgis/postgis:${{ matrix.postgis-docker-tag }} \ | |
-c timezone=Europe/Berlin | |
env: | |
PGUSER: postgres | |
PGPASSWORD: password | |
PGDATABASE: postgres | |
- run: npm install | |
- run: npm run lint | |
- run: npm test |