Fix/make (#24) #68
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: Run integration test using docker-compose | |
on: push | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the localdev environment | |
run: docker-compose -f docker-compose.test-integration.yml up -d | |
- name: Setup | |
run: sudo rm -rf ./mongodb && mkdir ./mongodb && sudo chown -R 1001:1001 ./mongodb | |
- name: Test | |
run: docker exec pacman-app-integration /bin/bash -c "npm run test-integration" | |
- name: Set short-form sha env property | |
id: customvars | |
run: | | |
echo "sha_short=sha-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Test short-form sha env property | |
run: echo 'ghcr.io/austriandatalab/pacman:${{ steps.customvars.outputs.sha_short }}' |