Skip to content

Update dotnet.yml

Update dotnet.yml #6

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
env:
PACT_FLOW_BASE_URL: ${{ vars.PACT_FLOW_BASE_URL }}
PACT_FLOW_TOKEN: ${{ vars.PACT_FLOW_TOKEN }}
environment: production
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Read a variable
run: echo "My PACT_FLOW_BASE_URL value is ${{ vars.PACT_FLOW_BASE_URL }}"
- name: Tell me a secret!
run: echo "My PACT_FLOW_TOKEN value is ${{ vars.PACT_FLOW_TOKEN }}"
- name: Test
run: dotnet test --no-build --verbosity normal