Merge pull request #427 from rasmus/better-docker-credentials #1182
This file contains 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: pull-requests | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_NOLOGO: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start Docker services | |
run: docker compose up -d --force-recreate | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
3.1.x | |
6.0.x | |
8.0.x | |
- name: Setup Go 1.17.2 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.17.2' | |
- name: Setup Python 3.x | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Create a CLI version of Bake to use | |
run: dotnet publish -o bake-it Source/Bake | |
- name: Run Bake | |
run: bake-it/bake run --build-version 0.29.$GITHUB_RUN_NUMBER | |
- name: Upload test results | |
uses: actions/upload-artifact@v3 | |
if: success() || failure() | |
with: | |
name: test-results | |
path: "**/*.trx" | |
if-no-files-found: error |