workflows: let’s see if we can get test on push working
This commit is contained in:
parent
c8e139fa14
commit
4f3f2e5896
3 changed files with 31 additions and 1 deletions
2
.github/workflows/create-release.yaml
vendored
2
.github/workflows/create-release.yaml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup .Net
|
||||
uses: actions/setup-dotnet@v1.1
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: '6.0.x'
|
||||
|
||||
|
|
29
.github/workflows/push-test.yaml
vendored
Normal file
29
.github/workflows/push-test.yaml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Run tests on push push
|
||||
|
||||
on:
|
||||
push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Test EDNA
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup .Net
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: '6.0.x'
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: Build
|
||||
run: dotnet build -c release
|
||||
|
||||
- name: Run tests
|
||||
run: dotnet test
|
1
EDNA.sln
1
EDNA.sln
|
@ -19,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||
CHANGELOG.md = CHANGELOG.md
|
||||
.github\workflows\create-release.yaml = .github\workflows\create-release.yaml
|
||||
Directory.build.props = Directory.build.props
|
||||
.github\workflows\push-test.yaml = .github\workflows\push-test.yaml
|
||||
README.md = README.md
|
||||
stylecop.json = stylecop.json
|
||||
EndProjectSection
|
||||
|
|
Loading…
Reference in a new issue