Skip to content

Commit

Permalink
Add GitHub actions (#54)
Browse files Browse the repository at this point in the history
Add Github Actions with build on multiple OS.

Co-authored-by: byronlin-bq <[email protected]>
  • Loading branch information
byronlin13 and byronlin13 authored Dec 17, 2020
1 parent 2888ff5 commit b14e32e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/nodeapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Node.js Application

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
max-parallel: 1
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [8.x, 10.x, 12.x]

steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
aws-region: us-east-1

- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build & Lint
run: npm run build

- name: Test
run: |
npm test
npm run integrationTest
2 changes: 1 addition & 1 deletion src/test/Errors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ chai.use(chaiAsPromised);
const sandbox = sinon.createSandbox();

const testMessage: string = "foo";
const mockError: AWSError = <AWSError><any> sandbox.mock(AWSError);
const mockError: AWSError = <AWSError><any> sandbox.mock(Error);

describe("Errors", () => {

Expand Down

0 comments on commit b14e32e

Please sign in to comment.