mirror of
https://github.com/usememos/memos.git
synced 2024-11-15 11:17:58 +08:00
30 lines
577 B
YAML
30 lines
577 B
YAML
|
name: Test
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
- "release/v*.*.*"
|
||
|
pull_request:
|
||
|
branches: [main]
|
||
|
|
||
|
jobs:
|
||
|
go-static-checks:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: 1.18
|
||
|
check-latest: true
|
||
|
cache: true
|
||
|
- name: Verify go.mod is tidy
|
||
|
run: |
|
||
|
go mod tidy
|
||
|
git diff --exit-code
|
||
|
- name: golangci-lint
|
||
|
uses: golangci/golangci-lint-action@v3
|
||
|
with:
|
||
|
args: -v
|
||
|
skip-cache: true
|