Skip to content

Commit 750ed69

Browse files
committed
Convert from Travis CI to Github Actions
Additionally, this converts the HEAD branch to 'main' from 'master'
1 parent 8fb215c commit 750ed69

File tree

3 files changed

+35
-31
lines changed

3 files changed

+35
-31
lines changed

.github/workflows/npm.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on: [push, pull_request]
2+
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
env:
7+
# The AWS JS SDK only respects AWS_REGION, not AWS_DEFAULT_REGION
8+
# See https://github.com/aws/aws-sdk-js/issues/2929
9+
AWS_DEFAULT_REGION: us-east-1
10+
AWS_REGION: us-east-1
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: APT Install
15+
run: |
16+
sudo apt-get install \
17+
jq \
18+
python3-pip \
19+
python3-setuptools
20+
- name: PIP Install
21+
run: |
22+
pip3 install awscli --upgrade --user
23+
- name: NVM Install
24+
run: |
25+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
26+
. $HOME/.nvm/nvm.sh
27+
nvm install
28+
- name: NPM Install
29+
run: npm ci
30+
- name: Build and Test
31+
run: npm run build-and-test
32+
- name: Release
33+
if: github.ref == 'refs/heads/main'
34+
run: npm run release

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v14.16.0

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)