From 9b99f82e2cd1cf696e15e2d14b6da160db772399 Mon Sep 17 00:00:00 2001 From: Hidetake Iwata Date: Sun, 17 Dec 2023 13:53:53 +0900 Subject: [PATCH] Fix test --- .github/workflows/test.yaml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 14598c0..214f81a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,22 +1,20 @@ name: test on: - push: - branches: - - v1 + pull_request: paths: - .github/workflows/test.yaml - .github/workflows/build.yaml - - .github/workflows/build-multi-architecture.yaml - fixtures/** - tags: - - v* - pull_request: + push: paths: - .github/workflows/test.yaml - .github/workflows/build.yaml - - .github/workflows/build-multi-architecture.yaml - fixtures/** + branches: + - v1 + tags: + - v* concurrency: group: ${{ github.workflow }}--${{ github.ref }} @@ -36,21 +34,15 @@ jobs: build: needs: go-version - uses: ./.github/workflows/build-multi-architecture.yaml + uses: ./.github/workflows/build.yaml with: context: fixtures build-args: | go_version=${{ needs.go-version.outputs.go-version }} test: - needs: - - build + needs: build runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: docker/metadata-action@31cebacef4805868f9ce9a0cb03ee36c32df2ac4 # v5.3.0 - id: metadata - with: - images: ghcr.io/${{ github.repository }} - flavor: latest=false - - run: docker run --rm ${{ steps.metadata.outputs.tags }} + - run: docker run --rm 'ghcr.io/${{ github.repository }}@${{ needs.build.outputs.digest }}'