Skip to content

Commit

Permalink
Merge pull request #248 from alexcasalboni/coveralls-v2
Browse files Browse the repository at this point in the history
Upgrade GHA coveralls v2
  • Loading branch information
alexcasalboni authored May 2, 2024
2 parents a81c9da + 6e8da0b commit 6ede8f0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
- run: npm run coverage

- name: Coveralls
uses: coverallsapp/github-action@v1
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 6 additions & 1 deletion lambda/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
'use strict';

const { CreateAliasCommand, DeleteAliasCommand, DeleteFunctionCommand, GetAliasCommand, GetFunctionConfigurationCommand, InvokeCommand, LambdaClient, PublishVersionCommand, UpdateAliasCommand, UpdateFunctionConfigurationCommand, waitUntilFunctionActive, waitUntilFunctionUpdated, ResourceNotFoundException } = require('@aws-sdk/client-lambda');
const {
CreateAliasCommand, DeleteAliasCommand, DeleteFunctionCommand, GetAliasCommand,
GetFunctionConfigurationCommand, InvokeCommand, LambdaClient, PublishVersionCommand,
UpdateAliasCommand, UpdateFunctionConfigurationCommand,
waitUntilFunctionActive, waitUntilFunctionUpdated, ResourceNotFoundException,
} = require('@aws-sdk/client-lambda');
const { GetObjectCommand, S3Client } = require('@aws-sdk/client-s3');
const url = require('url');

Expand Down
6 changes: 5 additions & 1 deletion test/unit/test-lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ const sinon = require('sinon');
const expect = require('expect.js');

var awsV3Mock = require('aws-sdk-client-mock');
const { CreateAliasCommand, DeleteAliasCommand, DeleteFunctionCommand, GetAliasCommand, InvokeCommand, LambdaClient, PublishVersionCommand, UpdateAliasCommand, UpdateFunctionConfigurationCommand, ResourceNotFoundException } = require('@aws-sdk/client-lambda');
const {
CreateAliasCommand, DeleteAliasCommand, DeleteFunctionCommand, GetAliasCommand,
InvokeCommand, LambdaClient, PublishVersionCommand, UpdateAliasCommand,
UpdateFunctionConfigurationCommand, ResourceNotFoundException,
} = require('@aws-sdk/client-lambda');

const utils = require('../../lambda/utils');

Expand Down
8 changes: 6 additions & 2 deletions test/unit/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ const sinon = require('sinon');
const expect = require('expect.js');

var awsV3Mock = require('aws-sdk-client-mock');
const {CreateAliasCommand, DeleteAliasCommand, DeleteFunctionCommand, GetAliasCommand, GetFunctionConfigurationCommand, InvokeCommand, LambdaClient, PublishVersionCommand, UpdateFunctionConfigurationCommand, UpdateAliasCommand, ResourceNotFoundException } = require('@aws-sdk/client-lambda');
const {GetObjectCommand, S3Client} = require('@aws-sdk/client-s3');
const {
CreateAliasCommand, DeleteAliasCommand, DeleteFunctionCommand, GetAliasCommand,
GetFunctionConfigurationCommand, InvokeCommand, LambdaClient, PublishVersionCommand,
UpdateFunctionConfigurationCommand, UpdateAliasCommand, ResourceNotFoundException,
} = require('@aws-sdk/client-lambda');
const { GetObjectCommand, S3Client } = require('@aws-sdk/client-s3');

process.env.sfCosts = `{"us-gov-west-1": 0.00003,"eu-north-1": 0.000025,
"eu-central-1": 0.000025,"us-east-1": 0.000025,"ap-northeast-1": 0.000025,
Expand Down

0 comments on commit 6ede8f0

Please sign in to comment.