Trigger workflow on PR #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Acceptance tests | |
on: [pull_request] | |
env: | |
CONTAINER: wordpress | |
CI_IMAGE: docker.io/seravo/wordpress:ci | |
jobs: | |
acceptance: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run Codeception acceptance tests | |
run: | | |
docker run --name "${{env.CONTAINER}}" \ | |
--hostname "${{env.CONTAINER}}" \ | |
--volume "/tmp/data/:/data" \ | |
--volume "$(pwd):/data/wordpress" \ | |
--env WP_USER_UID=1001 \ | |
--env DEBUG=true \ | |
--rm "${{env.CI_IMAGE}}" |