Skip to content

Run tests in GitHub Action #36

Run tests in GitHub Action

Run tests in GitHub Action #36

Workflow file for this run

name: Publish Docker image (vue3 branch)
on:
push:
branches:
- 'vue3'
env:
TAG: facilmap/facilmap:vue3
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build docker image
uses: docker/build-push-action@v5
with:
context: .
tags: |
${{env.TAG}}
facilmap-ci
-
name: Start integration test components
uses: isbang/[email protected]
with:
compose-file: ./integration-tests/docker-compose.yml
-
name: Run integration tests
run: docker run --rm facilmap-ci sh -c "\
yarn workspaces focus integration-tests && \
FACILMAP_URL=http://localhost:8080 yarn workspace integration-tests run integration-tests &&
FACILMAP_URL=http://localhost:8081 yarn workspace integration-tests run integration-tests \
\"
-
name: Push docker image
run: docker push "$TAG"