Add test step in release workflows

This commit is contained in:
Vikas
2024-06-30 14:02:25 +05:30
parent 5e63a6f714
commit 4d4246dce6
2 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -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 }}