Skip to content

Commit

Permalink
Add Github workflow files for automated testing action
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Sep 1, 2022
1 parent 6d9c1ea commit 5632ff2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and test the aws jslib against a Localstack instance
on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.x

- name: Install k6
run: go install go.k6.io/k6@latest

- name: Build the stack
run: docker-compose up -d

- name: Wait for the localstack scripts to have been applied
run: sleep 30

- name: Install npm packages
run: npm install

- name: Test
run: npm run webpack && k6 run tests/index.js

0 comments on commit 5632ff2

Please sign in to comment.