Skip to content

Commit

Permalink
e2e tests with Pose / Docker Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsarm committed Apr 19, 2024
1 parent e6ebc7b commit 057895c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docker-image.yml → .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Image CI
name: Run e2e Tests

on: [push]

Expand All @@ -22,8 +22,15 @@ jobs:
run: ./docker-build.sh "${GITHUB_REF_SLUG}"
- name: Setup environment variables
run: cp .env.example .env
- name: Install pose
run: wget https://github.com/mrsarm/pose/releases/download/0.4.0-b4/pose-0.4.0-b4-x86_64-unknown-linux-gnu.tar.gz
- run: tar -xvf pose*.tar.gz
- name: Build compose file for CI
run: pose config -t "${GITHUB_REF_SLUG}" --tag-filter regex=mrsarm/ --progress -o ci.yaml
- name: Pull images
run: docker compose -f ci.yaml pull
- name: Run e2e tests
run: docker compose run dcoleman-e2e
run: docker compose -f ci.yaml run dcoleman-e2e
- name: Release Docker image
if: ${{ github.ref != 'refs/heads/main' }}
run: docker push "mrsarm/dcoleman-e2e:${GITHUB_REF_SLUG}"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules
playwright-report
test-results
ci*.yaml
.env

0 comments on commit 057895c

Please sign in to comment.