Skip to content

Commit

Permalink
fix: docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Mar 15, 2024
1 parent ae2fcae commit 512c5e7
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Acceptance Tests using docker compose
on:
push:
branches:
- 3.x
- '3.x'
pull_request:
branches:
- '**'
Expand All @@ -16,32 +16,37 @@ env:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
# need checkout before using compose-action
- uses: actions/checkout@v3
- uses: isbang/[email protected]
with:
compose-file: "./test/docker-compose.yml"
down-flags: "--volumes"
- run:
command: docker-compose run --rm test-acceptance.puppeteer
working_directory: test
when: always
- run:
command: docker-compose run --rm test-rest
working_directory: test
when: always
- run:
command: docker-compose run --rm test-acceptance.webdriverio
working_directory: test
when: always
- run:
command: docker-compose run --rm test-bdd.faker
working_directory: test
when: always
# Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v3

# Run acceptance tests using docker-compose
- name: Run Puppeteer Acceptance Tests
run: docker-compose run --rm test-acceptance.puppeteer
working-directory: test
continue-on-error: true

# Run rest tests using docker-compose
- name: Run REST Tests
run: docker-compose run --rm test-rest
working-directory: test
continue-on-error: true

# Run WebDriverIO acceptance tests using docker-compose
- name: Run WebDriverIO Acceptance Tests
run: docker-compose run --rm test-acceptance.webdriverio
working-directory: test
continue-on-error: true

# Run faker BDD tests using docker-compose
- name: Run Faker BDD Tests
run: docker-compose run --rm test-bdd.faker
working-directory: test
continue-on-error: true

0 comments on commit 512c5e7

Please sign in to comment.