-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EHD-1057: Simplify hosting: Use GitHub Actions: Install Node.JS depen…
…dencies
- Loading branch information
1 parent
9179478
commit 609be67
Showing
1 changed file
with
33 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,34 @@ | ||
name: 'Build, Deploy (all environments)' | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
concurrency: ${{ github.workflow }} # Prevents more than one instance of this workflow running at the same time | ||
|
||
jobs: | ||
build: | ||
name: 'Build' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v4 | ||
|
||
name: 'Build, Deploy (all environments)' | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
concurrency: ${{ github.workflow }} # Prevents more than one instance of this workflow running at the same time | ||
|
||
jobs: | ||
build: | ||
name: 'Build' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Code' | ||
uses: actions/checkout@v4 | ||
|
||
- name: 'Install .Net (nuget) dependencies' | ||
run: | | ||
dotnet restore GenderPayGap.Core/GenderPayGap.Core.csproj | ||
dotnet restore GenderPayGap.Database/GenderPayGap.Database.csproj | ||
dotnet restore GenderPayGap.WebUI/GenderPayGap.WebUI.csproj | ||
dotnet restore GenderPayGap.UnitTests/GenderPayGap.WebUI.Tests/GenderPayGap.WebUI.Tests.csproj | ||
run: | | ||
dotnet restore GenderPayGap.Core/GenderPayGap.Core.csproj | ||
dotnet restore GenderPayGap.Database/GenderPayGap.Database.csproj | ||
dotnet restore GenderPayGap.WebUI/GenderPayGap.WebUI.csproj | ||
dotnet restore GenderPayGap.UnitTests/GenderPayGap.WebUI.Tests/GenderPayGap.WebUI.Tests.csproj | ||
- name: 'Install Node.JS version 20 (v22 caused an error during npm ci)' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: 'Install Node.JS (npm) dependencies' | ||
run: | | ||
npm ci | ||
working-directory: GenderPayGap.WebUI |