add get assignment methods with context #144
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test SDK | |
env: | |
SDK_BRANCH_NAME: ${{ inputs.sdk_branch || github.head_ref || github.ref_name || 'main' }} | |
TEST_DATA_BRANCH_NAME: ${{ inputs.test_data_branch || 'main' }} | |
on: | |
pull_request: | |
paths: | |
- '**/*' | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
test_data_branch: | |
type: string | |
description: The branch in sdk-test-data to target for testcase files | |
required: false | |
default: main | |
sdk_branch: | |
type: string | |
description: The branch of the SDK to test | |
required: false | |
jobs: | |
test-sdk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: Eppo-exp/golang-sdk | |
ref: ${{ env.SDK_BRANCH_NAME}} | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: make test branchName=${{env.TEST_DATA_BRANCH_NAME}} |