Merge remote-tracking branch 'origin/325-time-list---update-to-use-ne… #1229
This file contains 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: HQ CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
- 'release-*' | |
jobs: | |
build-dotnet: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/dotnet/ | |
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: Format | |
run: dotnet format ./HQ.sln --verify-no-changes --verbosity diagnostic | |
- name: Build | |
run: dotnet build --no-restore -warnaserror | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
build-angular-hq: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/angular/hq/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'npm' | |
cache-dependency-path: src/angular/hq/package-lock.json | |
- name: Restore dependencies | |
run: npm ci | |
- name: Prettier | |
run: npm run prettier -- . --check | |
- name: Lint | |
run: npm run lint | |
- name: Build | |
run: npm run build --if-present |