This repository has been archived by the owner on May 30, 2024. It is now read-only.
Replace into MIT License (#528) #1020
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
go-test: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17' | |
- | |
uses: actions/checkout@v2 | |
- | |
name: golangci-lint | |
uses: golangci/golangci-lint-action@v3.1.0 | |
with: | |
version: v1.42 | |
args: -D errcheck --timeout 2m | |
- | |
run: go test -cpu 4 -coverprofile .testCoverage.txt $(go list ./... | grep -v model/ent | grep -v mock) | |
env: | |
GIN_MODE: release | |
react-test: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@v2 | |
- | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14.17.0' | |
cache: 'npm' | |
cache-dependency-path: ui/package-lock.json | |
- | |
run: npm install | |
working-directory: ui | |
- | |
run: npm run lint | |
working-directory: ui |