This commit is contained in:
		
							
								
								
									
										19
									
								
								.github/workflows/go.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/go.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | |||||||
|  | name: Go | ||||||
|  | on: [push] | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |  | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |       - name: Setup Go | ||||||
|  |         uses: actions/setup-go@v4 | ||||||
|  |         with: | ||||||
|  |           go-version: '>=1.20.1' | ||||||
|  |       - name: Install dependencies | ||||||
|  |         run: go get . | ||||||
|  |       - name: Build | ||||||
|  |         run: go build -v ./... | ||||||
|  |       - name: Test with the Go CLI | ||||||
|  |         run: go test | ||||||
| @@ -3,6 +3,8 @@ name: goreleaser | |||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|     branches: [ main, ci ] |     branches: [ main, ci ] | ||||||
|  |     tags: | ||||||
|  |       - '*' | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   goreleaser: |   goreleaser: | ||||||
| @@ -23,6 +25,8 @@ jobs: | |||||||
|             args: release --clean |             args: release --clean | ||||||
| 
 | 
 | ||||||
|         env_files: |         env_files: | ||||||
|  |           # override gitea actions which passes GITHUB_TOKEN to set env var as null | ||||||
|  |           GITHUB_TOKEN: /dev/null | ||||||
|           GORELEASER_FORCE_TOKEN: "gitea" |           GORELEASER_FORCE_TOKEN: "gitea" | ||||||
|           GITEA_TOKEN: ${{ secrets.GORELASER_TOKEN }} |           GITEA_TOKEN: ${{ secrets.GORELASER_TOKEN }} | ||||||
| 
 | 
 | ||||||
		Reference in New Issue
	
	Block a user