-
-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (39 loc) · 1.03 KB
/
review.yml
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
36
37
38
39
40
41
name: Review
on:
push:
branches:
- main
schedule:
- cron: "19 7 * * 2"
jobs:
go-test:
name: Go Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Report test-coverage to DeepSource
run: |
go test -coverprofile=${COVERAGE_FILE} -v ./...
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key $LANGUAGE_KEY --value-file ${COVERAGE_FILE}
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
COVERAGE_FILE: cover.out
LANGUAGE_KEY: go
codeql:
name: CodeQL
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ["go"]
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- uses: github/codeql-action/autobuild@v3
- uses: github/codeql-action/analyze@v3