From 5632ff20c4afdd39ba9ec45a70c41aa9f3ee6d72 Mon Sep 17 00:00:00 2001 From: oleiade Date: Thu, 1 Sep 2022 14:44:26 +0200 Subject: [PATCH] Add Github workflow files for automated testing action --- .github/workflows/all.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/all.yml diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml new file mode 100644 index 0000000..83e7107 --- /dev/null +++ b/.github/workflows/all.yml @@ -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 \ No newline at end of file