Skip to content

test: add example lambda tests #129

test: add example lambda tests

test: add example lambda tests #129

Workflow file for this run

name: Serverless Boilerplate
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
name: Build
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- run: cp .env.dist .env
- run: npm ci
- run: npm run lint
- run: npm run test-coverage
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage/
sonarqube-analysis:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: coverage
path: coverage/
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: sqp_b71429573ea73ed4c73e5fe20749c635ed7b611d
SONAR_HOST_URL: https://sonarqube.aws.tshdev.io