Skip to content

Commit

Permalink
testing new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
VladKochetov007 committed Jan 30, 2024
1 parent eeb46b9 commit c722102
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,27 @@ jobs:
go-version: '1.21'

- name: Build
run: go build -v ./...
run: make build

test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Test
run: go test -v ./...
run: make test-cov

documentation:
needs: [build, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Generate Documentation
run: make doc
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ COVERAGE := testdata/coverage.txt
TESTPATH := ./...

setup :
export PATH=$$PATH:$(shell go env GOPATH)/bin
export PATH=$$PATH:/home/vlad/go/bin

lint :
golangci-lint run --enable-all -D \
Expand All @@ -25,3 +25,6 @@ test-cov :

view-cov :
go tool cover -html=$(COVERAGE)

build :
go build -v ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module xoney

go 1.21.4
go 1.21.6

0 comments on commit c722102

Please sign in to comment.