Skip to content

Allow resource alarm customisation #547

Allow resource alarm customisation

Allow resource alarm customisation #547

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}.x
cache: 'npm'
- run: npm ci
- run: npm test
name: Run unit tests
- name: Build TypeScript
run: npm run build
- working-directory: ./serverless-test-project
run: npm test
name: Run Serverless Framework packaging test
- working-directory: ./serverless-test-project-alb
name: Run Serverless Framework packaging test for ALB test project
run: npm test
- working-directory: ./serverless-test-project-appsync
name: Run Serverless Framework packaging test for AppSync test project
run: npm test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-node-${{ matrix.node-version }}
parallel: true
path-to-lcov: .tap/report/lcov.info
if: ${{ matrix.node-version != 18 }} # Node 18 is reporting inaccurate coverage data, so we ignore its report
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
path-to-lcov: .tap/report/lcov.info