Skip to content

Restore the Stepup E2E behat tests #8

Restore the Stepup E2E behat tests

Restore the Stepup E2E behat tests #8

Workflow file for this run

name: stepup-behat
on:
pull_request:
push:
branches: [ main, feature/*, bugfix/* ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Init environment
run: |
cd stepup
cp .env.test .env
cp gateway/surfnet_yubikey.yaml.dist gateway/surfnet_yubikey.yaml
docker compose -f docker-compose.yml -f docker-compose-behat.yml up -d
- name: Run the behat tests
run: |
cd stepup
docker exec -t stepup-behat-1 bash -lc "./behat"
- name: Output logs on failure
if: failure()
run: docker compose logs