Skip to content

chore(deps): update actions/setup-go action to v6 #375

chore(deps): update actions/setup-go action to v6

chore(deps): update actions/setup-go action to v6 #375

Workflow file for this run

name: OATS
on:
push:
branches: [ main ]
paths-ignore:
- '**/*.gitattributes'
- '**/*.gitignore'
- '**/*.md'
pull_request:
branches: [ main ]
workflow_dispatch:
permissions: {}
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
filter: 'tree:0'
persist-credentials: false
show-progress: false
- name: Setup .NET SDK
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
- name: Build NuGet packages
run: dotnet build --configuration Release
- name: Publish NuGet packages
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: oats-packages
path: ./artifacts/package/release
if-no-files-found: error
acceptance-tests:
runs-on: ubuntu-latest
needs: package
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
filter: 'tree:0'
persist-credentials: false
show-progress: false
- name: Download packages
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: oats-packages
path: ./.packages
- name: Set up Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
cache: false
go-version: '1.25'
- name: Install OATS
env:
# renovate: datasource=github-releases depName=oats packageName=grafana/oats
OATS_VERSION: v0.4.1
run: go install "github.com/grafana/oats@${OATS_VERSION}"
- name: Run acceptance tests
env:
BUILD_DISTRO_FROM_SOURCE: false
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