Skip to content

Added a test user to the environment and kbase_user.json generatation… #54

Added a test user to the environment and kbase_user.json generatation…

Added a test user to the environment and kbase_user.json generatation… #54

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
run: echo "{\"$DTS_KBASE_TEST_ORCID\": \"$DTS_KBASE_TEST_USER\"}" | fmt > kbase_users.json

Check failure on line 41 in .github/workflows/autotest_prs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/autotest_prs.yml

Invalid workflow file

You have an error in your yaml syntax on line 41
- 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