IND-3875 enabling dependabot, changelog added #52
Workflow file for this run
This file contains hidden or 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: Tests | |
on: [push, workflow_dispatch] | |
jobs: | |
get-go-version: | |
name: Determine Go toolchain version | |
runs-on: ubuntu-latest | |
outputs: | |
go-version: ${{ steps.get-go-version.outputs.go-version }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Determine Go version | |
id: get-go-version | |
run: | | |
echo "Building with Go $(cat .go-version)" | |
echo "{go-version}={$(cat .go-version)}" >> $GITHUB_OUTPUT | |
fmtcheck: | |
name: format check | |
runs-on: ubuntu-latest | |
needs: [get-go-version] | |
steps: | |
- name: Chekout Code | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Setup Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: ${{ needs.get-go-version.outputs.go-version }} | |
- name: Check formatting | |
run: 'exit $(( $(gofmt -s -l . | wc -l) != 0 ))' | |
test: | |
name: codec test | |
runs-on: ubuntu-latest | |
needs: [get-go-version] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Setup Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: ${{ needs.get-go-version.outputs.go-version }} | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 | |
- run: go test -v ./codec | |
- run: go test -tags codecgen.exec -v ./codec | |
- name: Generate coverage report | |
run: go test -v -coverprofile=coverage.out ./... | |
- name: Upload coverage report | |
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 | |
with: | |
path: coverage.out | |
name: Coverage-report | |
- name: Display coverage report | |
run: go tool cover -func=coverage.out | |
- name: Build Go | |
run: go build ./... |