Skip to content

feat(build) Workflow node 20 setup #463

feat(build) Workflow node 20 setup

feat(build) Workflow node 20 setup #463

Workflow file for this run

name: PR-Build
on:
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04, windows-2022, macos-13 ]
env:
src-directory: ./src
# CODCOV
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: Checkout the repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
# .net Core setup
- name: Setup .NET Core 2.1
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
dotnet-version: 2.1
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
dotnet-version: 3.1
- name: Setup .NET 5.x
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
dotnet-version: 5.x
- name: Setup .NET 6.x
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
dotnet-version: 6.x
- name: Setup .NET 8.x
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
dotnet-version: 8.x
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
# Caching Tools
- name: Cache Tools
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
# Build
- name: Build Project
uses: cake-build/cake-action@v2
using: 'node20'

Check failure on line 69 in .github/workflows/pr-build.yml

View workflow run for this annotation

GitHub Actions / PR-Build

Invalid workflow file

The workflow is not valid. .github/workflows/pr-build.yml (Line: 69, Col: 7): Unexpected value 'using'
with:
script-path: recipe.cake
target: CI
verbosity: Verbose
cake-version: 1.3.0
cake-bootstrap: true
# Publish
- name: Publish Issues-Report as build artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
if: matrix.os == 'windows-latest'
with:
if-no-files-found: warn
name: Issue Report
path: BuildArtifacts/report.html
- name: Publish NuGet package as build artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
if: matrix.os == 'ubuntu-22.04'
with:
if-no-files-found: warn
name: NuGet Package
path: BuildArtifacts/Packages/**/*
- name: Publish coverage artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
if: matrix.os == 'ubuntu-22.04'
with:
if-no-files-found: warn
name: Coverage
path: BuildArtifacts/TestCoverage/coverlet/*.xml