-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.22 KB
/
autotest_prs.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
42
43
44
45
46
47
48
49
50
name: autotest_prs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
DTS_KBASE_DEV_TOKEN: ${{ secrets.DTS_KBASE_DEV_TOKEN }}
DTS_KBASE_TEST_ORCID: ${{ secrets.DTS_KBASE_TEST_ORCID }}
DTS_KBASE_TEST_USER: ${{ secrets.DTS_KBASE_TEST_USER }}
DTS_GLOBUS_CLIENT_ID: ${{ secrets.DTS_GLOBUS_CLIENT_ID }}
DTS_GLOBUS_CLIENT_SECRET: ${{ secrets.DTS_GLOBUS_CLIENT_SECRET }}
# DTS_GLOBUS_TEST_ENDPOINT: ${{ secrets.DTS_GLOBUS_TEST_ENDPOINT }}
DTS_JDP_SECRET: ${{ secrets.DTS_JDP_SECRET }}
DTS_NMDC_USER: ${{ secrets.DTS_NMDC_USER }}
DTS_NMDC_PASSWORD: ${{ secrets.DTS_NMDC_PASSWORD }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setting up Go 1.21
uses: actions/setup-go@v4
with:
go-version: ^1.21
id: go
- name: Checking out DTS
uses: actions/checkout@v4
- name: Vetting DTS
run: go vet -v ./...
- name: Building DTS
run: go build -v ./...
- name: Testing DTS
shell: bash
run: |
go test -v ./... -coverprofile=coverage.out -covermode=atomic
- name: Uploading code coverage report to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}