Skip to content

Commit

Permalink
GHA use jobs.id.container for our container
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje authored and MKodde committed Oct 31, 2023
1 parent 3a88446 commit 2025cef
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ name: Run QA tests (static analysis, lint and unit tests)
on: [pull_request]

jobs:
build:
run-qa-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
DOCKER_BUILD: docker build -t test-integration -f docker/Dockerfile.ci .
DOCKER_EXEC: docker run -v "/home/runner/work/Stepup-gssp-example/Stepup-gssp-example:/var/www/html" -w /var/www/html -t test-integration /bin/bash
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Start the docker image for testing
run: ${DOCKER_BUILD}
defaults:
run:
working-directory: /var/www/html/
container:
image: ghcr.io/openconext/openconext-basecontainers/php82-apache2-node16-composer2:latest
volumes:
- .:/var/www/html

- name: Install Composer dependencies
run: ${DOCKER_EXEC} -c 'composer install'
env:
SYMFONY_ENV: dev
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Composer install
run: composer install

- name: Run QA tests
run: ${DOCKER_EXEC} -c 'composer check'
run: composer check

0 comments on commit 2025cef

Please sign in to comment.