feat: Run CI
Some checks failed
CI / Run Tests (push) Failing after 11s

This commit is contained in:
2024-11-14 19:43:07 -05:00
parent 853a157ae7
commit 115c4dc252

View File

@@ -33,18 +33,25 @@ jobs:
# push: true
# tags: |
# git.housh.dev/michael/${{ gitea.repository }}:${{ gitea.sha }}
- name: Get meta.
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
- name: Build test image.
run: >
docker buildx build \
-file Dockerfile.test \
--tag ${{ gitea.repositry }}:test \
--load
--tag ${{ steps.meta.outputs.REPO_NAME }}:test \
--load \
./
- name: Run Test
run: >
docker run --rm \
-e MOSQUITTO_SERVER=127.0.0.1 \
${{ gitea.repository }}:${{ gitea.sha }} swift test
${{ steps.meta.outputs.REPO_NAME }}:test swift test
- name: Cleanup.
if: always()
run: docker stop mosquitto && docker rm -f mosquitto