update build commands for build and test #31
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: Build and Test Operator | |
| on: | |
| pull_request: | |
| branches: ["**"] | |
| push: | |
| branches: ["**"] | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| # - name: Install gotestsum | |
| # run: go install gotest.tools/gotestsum@latest | |
| # - name: Install Dependencies | |
| # run: go mod tidy | |
| # - name: Run Unit Tests and Generate JUnit Report | |
| # run: | | |
| # mkdir -p test-results | |
| # gotestsum --junitfile test-results/unit-tests.xml -- -coverprofile=coverage.out ./... | |
| # - name: Upload Test Report Artifact | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: unit-test-results | |
| # path: test-results/unit-tests.xml | |
| # - name: Publish Test Results in PR UI | |
| # uses: dorny/test-reporter@v1 | |
| # if: always() | |
| # with: | |
| # name: Unit Test Results | |
| # path: test-results/unit-tests.xml | |
| # reporter: java-junit | |
| - name: Build Manager Binary | |
| run: make build | |
| - name: Build Docker Image | |
| run: docker build -t splunk/splunk-ai-operator:test . |