From c0e64f72843f7e319e3dd376caf674886064c20f Mon Sep 17 00:00:00 2001 From: Marc Mettke Date: Thu, 28 Dec 2023 10:44:58 +0100 Subject: [PATCH] Running ci tests inside lambda container --- .github/workflows/tests-container.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/tests-container.yml diff --git a/.github/workflows/tests-container.yml b/.github/workflows/tests-container.yml new file mode 100644 index 00000000..f52ac62e --- /dev/null +++ b/.github/workflows/tests-container.yml @@ -0,0 +1,23 @@ +name: aws-lambda-power-tuning-unit-tests +run-name: ${{ github.actor }} is running unit tests +on: + push: + branches: + - 'master' + pull_request: +jobs: + build: + strategy: + matrix: + node-version: [16, 18, 20] + runs-on: public.ecr.aws/lambda/nodejs:${{ matrix.node-version }} + steps: + - uses: actions/checkout@v3 + + - run: npm ci + - run: npm run coverage + + - name: Coveralls + uses: coverallsapp/github-action@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}