Skip to content

Fix static file caching for Development hot reload and CDN no-transform #11 #6

Fix static file caching for Development hot reload and CDN no-transform #11

Fix static file caching for Development hot reload and CDN no-transform #11 #6

name: bit platform CI - Templates
on:
workflow_dispatch:
pull_request:
paths:
- 'src/Templates/**'
env:
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
permissions:
contents: read
jobs:
build-Templates:
if: startsWith(github.event.pull_request.title, 'Prerelease') != true && startsWith(github.event.pull_request.title, 'Release') != true && startsWith(github.event.pull_request.title, 'Version') != true
name: build Bit.Templates
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Setup .NET 10.0
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
global-json-file: src/global.json
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: dotnet workload restore Boilerplate
run: cd src/Templates/Boilerplate/Bit.Boilerplate && dotnet workload restore
- name: InstallNodejsDependencies
continue-on-error: true # Error MSB4057, not all csproj files have InstallNodejsDependencies target.
run: dotnet build src/Templates/Boilerplate/Bit.Boilerplate/Boilerplate.slnx -t:InstallNodejsDependencies -m:1 -f net10.0
- name: Verify formatting
run: dotnet format whitespace src/Templates/Boilerplate/Bit.Boilerplate/Boilerplate.slnx --verify-no-changes
- name: dotnet build Boilerplate
run: dotnet build src/Templates/Boilerplate/Bit.Boilerplate/Boilerplate.slnx -p:EnforceCodeStyleInBuild=true