Skip to content

[chore] : Bump actions/upload-artifact from 4.6.2 to 5.0.0 #20

[chore] : Bump actions/upload-artifact from 4.6.2 to 5.0.0

[chore] : Bump actions/upload-artifact from 4.6.2 to 5.0.0 #20

Workflow file for this run

name: Build and Test Workflow
on:
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Setup Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
with:
go-version: '1.13'
- name: Run golanci-lint
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
- name: Run test and generate coverage report
run: go test -v -coverprofile=coverage.out ./...
- name: Upload coverage report
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
with:
path: coverage.out
name: Coverage-report
- name: Display coverage test
run: go tool cover -func=coverage.out
- name: Build Go
run: go build ./...