-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch deployment to release branch, do build / test on main branch
- Loading branch information
1 parent
ce109ae
commit 51f7bd0
Showing
2 changed files
with
56 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
# use ubuntu-latest image to run steps on | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# uses GitHub's checkout action to checkout code form the release branch | ||
- name: Checkout code | ||
uses: actions/checkout@v4.2.2 | ||
|
||
# sets up .NET SDK | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4.1.0 | ||
with: | ||
global-json-file: ./global.json | ||
|
||
- name: Install WASM workload | ||
run: dotnet workload install wasm-tools | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build --configuration Release --no-restore | ||
|
||
- name: Run tests | ||
run: dotnet test --configuration Release --no-build |
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