Skip to content

Merge pull request #37 from kbase/jeff-cohere/orcid-user-federation #61

Merge pull request #37 from kbase/jeff-cohere/orcid-user-federation

Merge pull request #37 from kbase/jeff-cohere/orcid-user-federation #61

Workflow file for this run

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 }}
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: Setting up KBase local user federation
uses: DamianReeves/[email protected]
with:
path: kbase_users.json
contents: |
{
"$DTS_KBASE_TEST_ORCID": "$DTS_KBASE_TEST_USER"
}
- 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@v3
with:
fail_ci_if_error: true