Skip to content

Commit

Permalink
Ensure GH workflow is run on push and PR
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Oct 31, 2023
1 parent 59783c7 commit bfb1cfa
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
name: Build and test the aws jslib against a Localstack instance
on: push
on:
# Enables running the workflow manually from the Actions tab
workflow_dispatch:

push:
branches:
- main
tags:
- v*

pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
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 Go
uses: actions/setup-go@v2
with:
go-version: 1.x

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

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

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

- name: Install npm packages
run: npm install
- name: Install npm packages
run: npm install

- name: Test
run: npm run webpack && npm run ci-test
- name: Test
run: npm run webpack && npm run ci-test

0 comments on commit bfb1cfa

Please sign in to comment.