generated from NetCoreTemplates/nextjs
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.33 KB
/
build.yml
File metadata and controls
51 lines (43 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build
on:
pull_request: {}
push:
branches:
- '**' # matches every branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v5
- name: Setup dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore NuGet packages
run: dotnet restore MyApp.slnx
# If your feed requires authentication, enable and configure the step below.
# This example uses a Personal Access Token stored in secrets.NUGET_API_KEY.
# Alternatively, you can use the NuGet Authenticate action from Azure Pipelines.
# - name: Authenticate private NuGet feed
# env:
# NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
# run: |
# dotnet nuget add source "https://YOUR_FEED_URL/index.json" \
# --name "PrivateFeed" \
# --username "YOUR_USERNAME" \
# --password "$NUGET_API_KEY" \
# --store-password-in-clear-text
- name: build
run: dotnet build --no-restore
working-directory: .
- name: test
run: |
dotnet test
if [ $? -eq 0 ]; then
echo TESTS PASSED
else
echo TESTS FAILED
exit 1
fi
working-directory: ./MyApp.Tests