Update readme.md #136
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: ecommerce-project-test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
name: Test Application | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup action | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20.4' | |
- name: Install dependencies | |
run: | | |
go mod tidy | |
go mod verify | |
- name: Run Test | |
run: | | |
go test -v -cover ./... | |
- name: Build executalbe file | |
run: | | |
mkdir -p build/bin | |
GOARCH=amd64 go build -v -o build/bin/api-linux-amd64 ./cmd/api | |