Skip to content

Merge pull request #97 from kbase/dependency-updates #198

Merge pull request #97 from kbase/dependency-updates

Merge pull request #97 from kbase/dependency-updates #198

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 }}
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 }}