name: Test on: pull_request: branches: - beta - main jobs: # Blocks a local (file:/tarball/overlay) protospack-v2 dependency from # reaching staging (beta) or prod (main). protospack-dep-guard: if: github.base_ref == 'beta' || github.base_ref == 'main' runs-on: [self-hosted, prd] steps: - name: Checkout uses: actions/checkout@v4 - name: Check protospack-v2 is consumed from the registry run: node scripts/check-protospack-dep.js 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