-
Notifications
You must be signed in to change notification settings - Fork 30
50 lines (43 loc) · 1.37 KB
/
master.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: master
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Ensure no Windows line endings
run: ./validate.sh
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test (Hedgehog.Tests)
run: dotnet test --no-build --configuration Release --verbosity normal tests/Hedgehog.Tests/Hedgehog.Tests.fsproj
- name: Test (Hedgehog.Linq.Tests)
run: dotnet test --no-build --configuration Release --verbosity normal tests/Hedgehog.Linq.Tests/Hedgehog.Linq.Tests.csproj
- name: Publish NuGet
uses: alirezanet/publish-nuget@v3.0.4
with:
PROJECT_FILE_PATH: "src/Hedgehog/Hedgehog.fsproj"
PACKAGE_NAME: "Hedgehog"
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
fable-tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup NodeJs
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Install npm packages
run: npm install
working-directory: ./tests/Hedgehog.Tests
- name: Fable Tests (Hedgehog.Tests)
run: |
dotnet tool restore
npm test
working-directory: ./tests/Hedgehog.Tests