Skip to content

Update Node.js to v20 #20

Update Node.js to v20

Update Node.js to v20 #20

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- main
env:
TEST_TAG: analytodon-cli:test
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
NEWRELIC_LICENSE_KEY: ${{ secrets.NEWRELIC_LICENSE_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: 'Build docker image'
uses: docker/build-push-action@v5
with:
context: .
load: true
tags: ${{ env.TEST_TAG }}
- name: Test
run: docker run --rm -e NEWRELIC_LICENSE_KEY="${{ env.NEWRELIC_LICENSE_KEY }}" ${{ env.TEST_TAG }} /analytodon-cli/bin/run hello world