mirror of
https://github.com/dadosfera/maestro.git
synced 2026-08-31 19:58:21 +00:00
27 lines
530 B
YAML
27 lines
530 B
YAML
name: Test
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: [self-hosted, prd]
|
|
env:
|
|
APP_NAME: ${{ github.event.repository.name }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build
|
|
run: docker build -t ${APP_NAME}_teste --target test .
|
|
|
|
- name: Run Test
|
|
run: docker run ${APP_NAME}_teste
|
|
|
|
- name: Remove Docker's Trash
|
|
if: always()
|
|
run: |
|
|
docker system prune --volumes -a -f
|
|
docker system df
|