-
-
Notifications
You must be signed in to change notification settings - Fork 9
35 lines (35 loc) · 870 Bytes
/
build.yml
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
name: build
on:
push:
branches:
- "**"
pull_request:
branches:
- "master"
jobs:
build:
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build
run: |
cd src
dotnet build
- name: Test
if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' }}
env:
GODADDY_API_SECRET: ${{ secrets.GODADDY_API_SECRET }}
GODADDY_ACCESS_KEY: ${{ secrets.GODADDY_ACCESS_KEY }}
run: |
cd src
dotnet test --no-build --verbosity normal