-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.08 KB
/
build-test-artifact.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
name: ASP.NET Core CI
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
jobs:
build_and_test:
if: contains(toJson(github.event.commits), '[SKIP CI]') == false
runs-on: ubuntu-latest
steps:
- name: Dump GitHub Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: where are we
run: pwd
- name: list some key files
run: ls
- name: Restore dependencies
run: dotnet restore ./framework/
- name: Build
run: dotnet build --no-restore ./framework/ --configuration Release
- name: Test
run: dotnet test --no-build --verbosity normal ./framework/ --configuration Release
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: EasyTemplateCore
path: ./framework/src/EasyTemplateCore.Web/bin/Release