From 4d4246dce6d0a1090a62adb07c9caa01a8d394c0 Mon Sep 17 00:00:00 2001 From: Vikas Date: Sun, 30 Jun 2024 14:02:25 +0530 Subject: [PATCH] Add test step in release workflows --- .github/workflows/docker_release.yml | 6 ++++++ .github/workflows/release.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/docker_release.yml b/.github/workflows/docker_release.yml index 02b0972..6329c22 100644 --- a/.github/workflows/docker_release.yml +++ b/.github/workflows/docker_release.yml @@ -25,6 +25,12 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + - name: Install dependencies + run: go get . + - name: Test with the Go CLI + run: go test -v ./... # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f08bbfc..d4a685c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,12 @@ jobs: goos: windows steps: - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + - name: Install dependencies + run: go get . + - name: Test with the Go CLI + run: go test -v ./... - uses: wangyoucao577/go-release-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }}