This repository was archived by the owner on May 30, 2024. It is now read-only.
Handle merge conflicts and commit status check failure #1021
Workflow file for this run
This file contains hidden or 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/[email protected] | |
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 |