Fix OATS workflow #40
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: OATS | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - '**/*.gitattributes' | |
| - '**/*.gitignore' | |
| - '**/*.md' | |
| workflow_dispatch: | |
| # TODO Remove once fixed | |
| pull_request: | |
| branches: [ main ] | |
| permissions: {} | |
| jobs: | |
| acceptance-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| filter: 'tree:0' | |
| persist-credentials: false | |
| show-progress: false | |
| - name: Set up Go | |
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version: '1.24' | |
| - name: Install OATS | |
| env: | |
| OATS_VERSION: 173ac1f6a190c2ffd156a98dfe923c70a2a0c3ca | |
| run: go install "github.com/grafana/oats@${OATS_VERSION}" | |
| - name: Run acceptance tests | |
| env: | |
| TESTCASE_BASE_PATH: './docker' | |
| TESTCASE_SKIP_BUILD: true | |
| TESTCASE_TIMEOUT: 5m | |
| run: oats ./docker/docker-compose-aspnetcore | |
| - name: Upload log file | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| if: failure() | |
| with: | |
| name: docker-compose.log | |
| path: oats/yaml/build/**/output.log | |
| if-no-files-found: ignore |