Skip to content

Merge pull request #2 from JamesJJ/dependabot/go_modules/linelambda/g… #19

Merge pull request #2 from JamesJJ/dependabot/go_modules/linelambda/g…

Merge pull request #2 from JamesJJ/dependabot/go_modules/linelambda/g… #19

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Format Check
run: if [ $(gofmt -l -s . | grep -E -v '^vendor/' | tee /tmp/gofmt.txt | wc -l) -ne 0 ]; then echo "fmt failed:"; cat /tmp/gofmt.txt ; exit 1; fi
- name: Build linelambda
run: cd linelambda && go build -v
- name: Test
run: cd linelambda && go test -v -covermode="count" -coverprofile="/tmp/coverage.out"
- name: Coverage Report
run: cd linelambda && go tool cover -func="/tmp/coverage.out"