[DNM] Test Azure Trusted Signing action #371
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' | |
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@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 | |
- 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@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.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 |