Compare commits
6 Commits
3.0.0-rc6
...
295d7d5373
Author | SHA1 | Date | |
---|---|---|---|
295d7d5373 | |||
7d48072102 | |||
23fb18d792 | |||
323b6e651c | |||
c86b2a5729 | |||
88f69b1935 |
26
.github/workflows/go-test.yaml
vendored
26
.github/workflows/go-test.yaml
vendored
@@ -1,16 +1,9 @@
|
||||
name: Go-Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
- "releases/**"
|
||||
- "**"
|
||||
jobs:
|
||||
tests:
|
||||
permissions:
|
||||
@@ -21,12 +14,21 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.24
|
||||
go-version: 1.25
|
||||
- name: Install helm
|
||||
run: |
|
||||
command -v helm || curl -sSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||
|
||||
- name: Tidy
|
||||
run: |
|
||||
export GOPROXY='https://proxy.golang.org,direct'
|
||||
go mod tidy
|
||||
- name: Launch Test
|
||||
run: |
|
||||
go mod tidy
|
||||
go vet ./... && go test -coverprofile=coverprofile.out -json -v ./... > gotest.json
|
||||
- uses: actions/upload-artifact@v4
|
||||
go vet ./...
|
||||
go test -coverprofile=coverprofile.out -json -v ./... > gotest.json
|
||||
# - uses: actions/upload-artifact@v4
|
||||
- uses: christopherhx/gitea-upload-artifact@v4
|
||||
with:
|
||||
name: tests-results
|
||||
path: |
|
||||
|
Reference in New Issue
Block a user