Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build

on:
push:
branches:
- '!dummy'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.0.100'
- name: build
run: dotnet build
- name: test 2.2
run: dotnet test --framework netcoreapp2.2 --no-build
- name: test 3.0
run: dotnet test --framework netcoreapp3.0 --no-build
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: release

on:
push:
branches:
- 'actions'
tags:
- '!dummy'

jobs:
release:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.2.402'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.0.100'
- run: mkdir -p artifacts
- uses: actions/upload-artifact@master
with:
name: package
path: artifacts
- name: build
run: dotnet build -c Release
- name: test 2.2
run: dotnet test -c Release --framework netcoreapp2.2 --no-build
- name: test 3.0
run: dotnet test -c Release --framework netcoreapp3.0 --no-build
- name: pack
shell: bash
run: |
version=`git describe --tags --dirty`
dotnet pack -c Release --no-build -o artifacts -p:Version=$version
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "2.2.103"
"version": "3.0.100"
}
}
2 changes: 1 addition & 1 deletion samples/Sample/Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFrameworks>netcoreapp2.2;netcoreapp3.0</TargetFrameworks>
<Configurations>Debug;Release;DebugNoRedirect</Configurations>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion test/GetPass.Test/GetPass.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFrameworks>netcoreapp2.2;netcoreapp3.0</TargetFrameworks>

<IsPackable>false</IsPackable>

Expand Down