[go] fix admin review normal user's redis cmd #94
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: gin-vue-admin build test | |
on: | |
push: | |
branches: | |
- "*" | |
paths-ignore: | |
- "./db/**" | |
- "**.md" | |
pull_request: | |
branches: | |
- "*" | |
paths-ignore: | |
- "./db/**" | |
- "**.md" | |
jobs: | |
frontend: | |
name: Frontend build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [v16.14.0] | |
steps: | |
- name: Check out branch | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build test | |
run: | | |
npm install --legacy-peer-deps | |
npm run build | |
working-directory: ./web | |
backend: | |
name: Backend build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.8 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.18 | |
id: go | |
- name: Check out branch | |
uses: actions/checkout@v2 | |
- name: Download dependencies | |
run: | | |
go mod download | |
if [ -f Gopkg.toml ]; then | |
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | |
dep ensure | |
fi | |
working-directory: ./go | |
- name: Test and Build | |
run: | | |
go build -v -race cmd/owls/main.go | |
working-directory: ./go |