This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
[frontend] remake goods item #342
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: backend | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
lint: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21.x" | |
- name: Run Linter | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: "v1.55" | |
test: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21.x" | |
- name: Get Dependencies | |
run: go get . | |
- name: Build Project | |
run: go build -v ./... | |
- name: Run Tests | |
run: go test -v ./... |