get.porter.sh/porter@v1.3.0/.github/workflows/integ-reuseable-workflow.yml (about) 1 name: integ reusable workflow 2 3 on: 4 workflow_call: 5 inputs: 6 test_name: 7 type: string 8 required: true 9 registry: 10 type: string 11 default: ghcr.io 12 env: 13 GOVERSION: 1.24.4 14 PORTER_INTEG_FILE: ${{inputs.test_name}}.go 15 16 jobs: 17 build: 18 runs-on: ubuntu-latest 19 steps: 20 - name: checkout 21 uses: actions/checkout@v4.1.0 22 - uses: actions/setup-go@v4 23 with: 24 go-version: "${{ env.GOVERSION }}" 25 cache: true 26 - name: Set up Docker Buildx 27 uses: docker/setup-buildx-action@v3 28 - name: Cache Docker layers 29 uses: actions/cache@v3 30 with: 31 path: /tmp/.buildx-cache 32 key: ${{ runner.os }}-buildx-${{ github.sha }} 33 - name: Docker Login 34 uses: docker/login-action@v3.0.0 35 with: 36 registry: ${{inputs.registry}} 37 username: ${{ github.actor }} 38 password: ${{ secrets.GITHUB_TOKEN }} 39 - name: Configure Agent 40 run: go run mage.go build 41 shell: bash 42 - name: Integration Test 43 run: go run mage.go -v TestIntegration 44 shell: bash