-
Notifications
You must be signed in to change notification settings - Fork 22
39 lines (31 loc) · 912 Bytes
/
CI.yml
File metadata and controls
39 lines (31 loc) · 912 Bytes
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
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
run-tests:
runs-on: ubuntu-latest
permissions:
id-token: write # Required to fetch the OIDC token
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha }}
- name: Install just
uses: extractions/setup-just@v2
- name: Build the binary
run: just build
- name: Run tests
run: just test
- name: Report test coverage to DeepSource
run: |
curl -fsSL https://cli.deepsource.com/install | BINDIR=./bin sh
./bin/deepsource report --analyzer test-coverage --key go --value-file ./coverage.out --use-oidc