CART/e2etest-a-user-add-a-product-to-cart #3960
Workflow file for this run
This file contains 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: Go | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.20' | |
- name: Install Go Swagger CLI | |
run: go install github.com/swaggo/swag/cmd/[email protected] | |
- name: Swagger | |
run: cd mailer-service && swag init; cd - | |
- name: Build | |
run: cd mailer-service && go build -v -o app; cd - | |
- name: Test | |
run: cd mailer-service && go test -v ./...; cd - | |
- name: Grant execute perm on cover.sh | |
run: chmod +x cover.sh | |
- name: Code coverage test | |
run: ./cover.sh |