-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (47 loc) · 1.51 KB
/
pull-request.yml
File metadata and controls
60 lines (47 loc) · 1.51 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
51
52
53
54
55
56
57
58
59
60
name: Item Tracker CI
on:
pull_request:
branches: [ master ]
env:
Project_Name: ItemBoxTracker
configuration: Debug
defaults:
run:
shell: bash
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the applications
env:
NUGET_USERNAME: ${{ github.repository_owner }}
NUGET_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh
run: |
cp .github/NuGet.Config .
msbuild -m /t:Restore
- name: Install CSI
env:
NUGET_USERNAME: ${{ github.repository_owner }}
NUGET_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
nuget install Microsoft.Net.Compilers.Toolset -OutputDirectory packages -Version 3.9.0-2.final
CSI="packages/Microsoft.Net.Compilers.Toolset.3.9.0-2.final/tasks/net472/csi.exe"
echo "CSI=$CSI" >> $GITHUB_ENV
# - name: Execute unit tests
# run: dotnet test
# if I had tests, I probably wouldn't need to build...
- name: Build the apps
shell: pwsh
run: |
msbuild -m /p:"Configuration=$env:configuration,AssemblyVersionNumber=0.0.0.0"
- name: Test scripts
run: |
# copy dlls for scripts to use
cp ${Project_Name}/bin/Debug/*.dll scripts/
for script in scripts/*.csx; do $CSI $script $configuration; done