From 0d4f9e9033ea9ec8b125788711a699cca3c72ccf Mon Sep 17 00:00:00 2001 From: Alex Casalboni Date: Wed, 15 Feb 2023 16:55:02 +0100 Subject: [PATCH 1/2] create GH Actions workflow --- .github/workflows/tests.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..38a247b --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,18 @@ +name: aws-lambda-power-tuning-tests +run-name: ${{ github.actor }} is running integration tests +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x, 13.x, 14.x, 15.x, 16.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm test + - run: npm run coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage \ No newline at end of file From b265d3450b79fd50c0bb7df90b97223c200ba899 Mon Sep 17 00:00:00 2001 From: Alex Casalboni Date: Wed, 15 Feb 2023 17:04:51 +0100 Subject: [PATCH 2/2] upadte GH action for Coveralls --- .github/workflows/tests.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 38a247b..60439f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,5 +14,8 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - - run: npm test - - run: npm run coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage \ No newline at end of file + - run: npm run coverage + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file