-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.02 KB
/
Copy pathci.yml
File metadata and controls
35 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
push:
pull_request:
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
Go:
runs-on: ubuntu-latest
defaults:
run: { working-directory: backend }
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with: { go-version-file: backend/go.mod, cache-dependency-path: backend/go.sum, cache: true }
- run: go fmt ./...
- run: go mod download
- run: go mod verify
- run: go mod tidy; git diff --exit-code go.mod go.sum
- uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
with: { working-directory: backend }
- run: go test -race -v ./...
Shell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: sudo apt-get update && sudo apt-get install -y shellcheck
- run: shellcheck $(find . -type f -name '*.sh' -not -path '*/site-packages/*' -not -path '*/vendor/*' -not -path '*/node_modules/*')