name: Perform tests for UI (REUSABLE) on: workflow_call: inputs: TEST: required: true type: string RELEASE: required: true type: string jobs: tests: runs-on: ubuntu-latest steps: # Prepare - name: Checkout source code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Login to ghcr uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Pull BW image run: docker pull ghcr.io/bunkerity/bunkerweb-tests:${{ inputs.RELEASE }} && docker tag ghcr.io/bunkerity/bunkerweb-tests:${{ inputs.RELEASE }} bunkerweb-tests - name: Pull Scheduler image run: docker pull ghcr.io/bunkerity/scheduler-tests:${{ inputs.RELEASE }} && docker tag ghcr.io/bunkerity/scheduler-tests:${{ inputs.RELEASE }} scheduler-tests - name: Pull UI image run: docker pull ghcr.io/bunkerity/ui-tests:${{ inputs.RELEASE }} && docker tag ghcr.io/bunkerity/ui-tests:${{ inputs.RELEASE }} ui-tests # Do tests - name: Run tests run: | cd ./tests/ui chmod +x ./tests.sh ./tests.sh "docker" ${{ inputs.TEST }} env: MODE: ${{ inputs.RELEASE }}