Skip to content

Fix OATS workflow

Fix OATS workflow #57

Workflow file for this run

name: OATS
on:
push:
branches: [ main ]
paths-ignore:
- '**/*.gitattributes'
- '**/*.gitignore'
- '**/*.md'
pull_request:
branches: [ main ]
workflow_dispatch:
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:
# TODO Pin to specific version and then update with renovate
OATS_VERSION: latest
run: go install "github.com/grafana/oats@${OATS_VERSION}"
- name: Run acceptance tests
run: oats --timeout=5m ./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