diff --git a/.github/workflows/gh-action-test.yml b/.github/workflows/gh-action-test.yml new file mode 100644 index 0000000000..374ef9c0a8 --- /dev/null +++ b/.github/workflows/gh-action-test.yml @@ -0,0 +1,15 @@ +name: gh-action-test +on: + push: + branches: [feat/github-actions] +jobs: + action-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Action test + uses: ./packages/artillery-github-action + with: + test: ./packages/artillery-github-action/test.yml diff --git a/packages/artillery-github-action/test.yml b/packages/artillery-github-action/test.yml new file mode 100644 index 0000000000..f672278d20 --- /dev/null +++ b/packages/artillery-github-action/test.yml @@ -0,0 +1,20 @@ +onfig: + target: "http://asciiart.artillery.io:8080" + phases: + - duration: 60 + arrivalRate: 5 + rampTo: 10 + - duration: 60 + arrivalRate: 10 + rampTo: 50 + - duration: 300 + rampTo: 50 +scenarios: + - name: Get 3 animal pictures + flow: + - get: + url: "/dino" + - get: + url: "/armadillo" + - get: + url: "/pony"