Skip to content

Add setup node action #4

Add setup node action

Add setup node action #4

Workflow file for this run

name: Test action
on:
pull_request:
branches: ["*"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isbang/[email protected]
- uses: actions/setup-node@v4
with:
node-version: latest
- name: Build
run: |
npm ci
npm run tsc
- name: Test prometheus push gateway
run: GITHUB_WORKFLOW=workflow GITHUB_JOB=job INPUT_PUSHGATEWAY='http://localhost:9091' INPUT_GATEWAYTYPE=prometheus node dist/test.js
- name: Test zapier push gateway
run: GITHUB_WORKFLOW=workflow GITHUB_JOB=job INPUT_PUSHGATEWAY='http://localhost' node dist/test.js
- name: Test gravel push gateway
run: GITHUB_WORKFLOW=workflow GITHUB_JOB=job INPUT_PUSHGATEWAY='http://localhost:4278' INPUT_GATEWAYTYPE=gravel node dist/test.js
- name: Test emitting errors
run: node dist/test.js