fix: Adding integration test for stack find_in_parent_folders
#1649
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: Base Tests | |
| on: | |
| push: | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }}-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu, macos] | |
| env: | |
| MISE_PROFILE: cicd | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Use mise to install dependencies | |
| uses: jdx/mise-action@v2 | |
| with: | |
| version: 2025.4.4 | |
| experimental: true | |
| env: | |
| # Adding token here to reduce the likelihood of hitting rate limit issues. | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - id: go-cache-paths | |
| run: | | |
| echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT" | |
| echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT" | |
| shell: bash | |
| - name: Go Build Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.go-cache-paths.outputs.go-build }} | |
| key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}-${{ matrix.os }}-amd64 | |
| - name: Go Mod Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.go-cache-paths.outputs.go-mod }} | |
| key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}-${{ matrix.os }}-amd64 | |
| - name: Run Tests | |
| id: run-tests | |
| run: | | |
| set -o pipefail | |
| go test -v ./... -timeout 45m | tee >(go-junit-report -set-exit-code > result.xml) | |
| shell: bash | |
| env: | |
| # Adding token here to reduce the likelihood of hitting rate limit issues. | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload Report (${{ matrix.os }}) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-report-${{ matrix.os }} | |
| path: result.xml | |
| - name: Display Test Results (${{ matrix.os }}) | |
| uses: mikepenz/action-junit-report@v5 | |
| if: always() | |
| with: | |
| report_paths: result.xml | |
| detailed_summary: 'true' | |
| include_time_in_summary: 'true' | |
| group_suite: 'true' |