Only run tests for net9 #150
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: CI | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install .Net Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
8.0.x | |
9.0.x | |
include-prerelease: true | |
- name: Install dotnet-script | |
run: dotnet tool install dotnet-script --global | |
- name: Run build script | |
run: dotnet-script build/Build.csx | |
build-mac: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install .Net Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
8.0.x | |
9.0.x | |
include-prerelease: true | |
- name: Install dotnet-script | |
run: dotnet tool install dotnet-script --global | |
- name: Run build script | |
run: dotnet-script build/Build.csx | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install .Net Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
8.0.x | |
9.0.x | |
include-prerelease: true | |
- name: Install dotnet-script | |
run: dotnet tool install dotnet-script --global | |
- name: Run tests | |
run: dotnet test -c release -f net9 src/Dotnet.Script.Tests/Dotnet.Script.Tests.csproj | |
- name: Run build script | |
run: dotnet-script build/Build.csx | |
env: # Or as an environment variable | |
GITHUB_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
IS_SECURE_BUILDENVIRONMENT: ${{ secrets.IS_SECURE_BUILDENVIRONMENT }} | |
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }} |