Skip to content

feature/net8-ext

feature/net8-ext #36

Workflow file for this run

name: Continuous Integration
on: pull_request
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
jobs:
###################################################
# DOCS
###################################################
# docs:
# name: Documentation
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@master
# - name: Setup dotnet
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: '5.0.100' # SDK Version to use.
# - name: Build
# shell: bash
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# cd docs
# dotnet run --configuration Release
###################################################
# BUILD
###################################################
docker:
name: Build Linux and Docker
if: "!contains(github.event.head_commit.message, 'skip-ci')"
needs: [build-os]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache packages
uses: actions/cache@v3
with:
path: ${{ env.NUGET_PACKAGES }}
key: ${{ runner.os }}-nuget-${{ hashFiles('.config/dotnet-tools.json', '**/packages.lock.json') }}
restore-keys: ${{ runner.os }}-nuget-
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
- name: Integration Tests
shell: bash
run: |
dotnet tool restore
- name: Build
shell: bash
run: |
dotnet tool restore
dotnet cake --target="Docker"
build-os:
name: Build OS
if: "!contains(github.event.head_commit.message, 'skip-ci')"
strategy:
matrix:
kind: ['windows', 'macOS']
include:
- kind: windows
os: windows-latest
- kind: macOS
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache packages
uses: actions/cache@v3
with:
path: ${{ env.NUGET_PACKAGES }}
key: ${{ runner.os }}-nuget-${{ hashFiles('.config/dotnet-tools.json', '**/packages.lock.json') }}
restore-keys: ${{ runner.os }}-nuget-
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
8.0.x
- name: Integration Tests
shell: bash
run: |
dotnet tool restore
- name: Build
shell: bash
run: |
dotnet tool restore
dotnet cake