[FSSDK-11857] go-sdk CMAB bug fixes from bug bash (#416) #438
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: Go | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| GO111MODULE: on | |
| jobs: | |
| lint_markdown_files: | |
| uses: optimizely/go-sdk/.github/workflows/lint_markdown.yml@master | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: '1.21.0' | |
| - run: make install lint | |
| unit_test_latest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: '>=1.21.0' | |
| - run: make cover | |
| unit_test_legacy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: '1.21.0' | |
| check-latest: true | |
| - run: make cover | |
| unit_test_coverage: | |
| runs-on: ubuntu-latest | |
| env: | |
| COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: '1.21.0' | |
| - run: | | |
| go test -race -covermode atomic -coverprofile=covprofile ./... | |
| go install github.com/mattn/goveralls@latest | |
| goveralls -coverprofile=covprofile -service=github | |
| benchmark_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: '>=1.21.0' | |
| - run: make benchmark | |
| integration_tests: | |
| uses: optimizely/go-sdk/.github/workflows/integration_test.yml@master | |
| secrets: | |
| CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }} | |
| TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }} | |
| fullstack_production_suite: | |
| uses: optimizely/go-sdk/.github/workflows/integration_test.yml@master | |
| with: | |
| FULLSTACK_TEST_REPO: ProdTesting | |
| secrets: | |
| CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }} | |
| TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }} |