Skip to content

Merge pull request #176 from aws-samples/dependabot/npm_and_yarn/infr… #98

Merge pull request #176 from aws-samples/dependabot/npm_and_yarn/infr…

Merge pull request #176 from aws-samples/dependabot/npm_and_yarn/infr… #98

Workflow file for this run

name: Build and test
on:
push:
branches: [ "main" ]
pull_request: {}
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./infra
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: infra/package-lock.json
- run: npm ci
- run: npm run build --if-present
- run: npm test