Review Dockerfile and RPM files for building odh-ml-pipelines-api-server-v2 in konflux #39
This file contains 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: Unit Tests | |
on: | |
pull_request: | |
paths: | |
- go.mod | |
- go.sum | |
- backend/** | |
types: | |
- opened | |
- reopened | |
- closed | |
- synchronize | |
workflow_dispatch: | |
env: | |
RESOURCES_DIR: ${{ github.workspace }}/.github/resources | |
jobs: | |
functest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.x' | |
- name: Run Unit Test | |
working-directory: ${{ github.workspace }}/backend/src | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: ${{ env.RESOURCES_DIR }}/unittests/application_default_credentials.json | |
run: go test ./... |