Dl/advanced analysis #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- 'feature/**' | |
- 'bugfix/**' | |
- 'hotfix/**' | |
- 'release/**' | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 # Update to v5 to support Node.js 20 | |
with: | |
go-version: '1.21' | |
- name: Clean up workspace | |
run: | | |
rm -rf go/pkg/mod/github.com/fatih/[email protected] | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v ./... | |
- name: Vet | |
run: go vet ./... | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v4 # Update to v4 to support Node.js 20 | |
with: | |
skip-cache: true # Skipping cache to avoid conflicts | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: grabitsh | |
path: grabitsh | |
report: | |
needs: build | |
if: success() | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check build status | |
run: | | |
echo "Build and tests passed successfully!" | |
echo "Ready for review and merge." |