4 files changed,
42 insertions(+),
0 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2024-06-13 12:23:10 +0300
Authored at:
2024-06-13 00:36:32 +0300
Parent:
42ac36c
A
.github/workflows/golang.yml
··· 1 +name: golang 2 + 3 +on: 4 + push: 5 + branches: [main] 6 + pull_request: 7 + 8 +jobs: 9 + release: 10 + runs-on: ubuntu-latest 11 + steps: 12 + - uses: actions/checkout@v3 13 + 14 + - name: Set up Go 15 + uses: actions/setup-go@v4 16 + with: 17 + go-version-file: go.mod 18 + cache-dependency-path: go.mod 19 + 20 + - name: Golangci Lint 21 + uses: golangci/golangci-lint-action@v3 22 + with: 23 + version: latest 24 + args: ./... 25 + 26 + - name: Build API 27 + run: go build -o .bin/onasty ./cmd/server/ 28 + 29 + - name: Unit tests 30 + run: go test -v --short ./... 31 + 32 + - name: e2e tests 33 + run: go test -v ./e2e/