Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c868593de | |||
| e8b08ee12e | |||
| 0dad948ccd | |||
| c1946c9f2c | |||
| 440008caed |
+16
-13
@@ -1,21 +1,24 @@
|
||||
name: 'DOTNET QC'
|
||||
description: '品質檢查 NUGET 套件'
|
||||
description: '品質檢查 .NET 套件'
|
||||
author: 'Jeffery'
|
||||
inputs:
|
||||
checkout_version:
|
||||
description: 'checkout 版本'
|
||||
required: true
|
||||
cache_nuget_version:
|
||||
description: 'cache-nuget 版本'
|
||||
required: true
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/checkout@${{ inputs.checkout_version }}
|
||||
- uses: https://gitea.jsc.idv.tw/actions/cache-nuget@${{ inputs.cache_nuget_version }}
|
||||
- run: dotnet restore
|
||||
- name: 取得專案
|
||||
uses: actions/checkout@v6
|
||||
- name: 快取 NUGET 套件
|
||||
uses: https://gitea.jsc.idv.tw/actions/cache-nuget@v0.0.2
|
||||
- name: 復原專案
|
||||
run: dotnet restore
|
||||
if: ${{ hashFiles('nuget.config') == '' }}
|
||||
shell: bash
|
||||
- run: dotnet build --no-restore
|
||||
- name: 復原專案
|
||||
run: dotnet restore --configfile nuget.config
|
||||
if: ${{ hashFiles('nuget.config') != '' }}
|
||||
shell: bash
|
||||
- run: dotnet test --no-restore --no-build
|
||||
- name: 建置專案
|
||||
run: dotnet build --no-restore
|
||||
shell: bash
|
||||
- name: 測試專案
|
||||
run: dotnet test --no-restore --no-build
|
||||
shell: bash
|
||||
Reference in New Issue
Block a user