+12
-6
@@ -4,15 +4,21 @@ author: 'Jeffery'
|
|||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- name: 取得專案
|
||||||
- uses: https://gitea.jsc.idv.tw/actions/cache-nuget@v0.0.2
|
uses: actions/checkout@v6
|
||||||
- run: dotnet restore
|
- name: 快取 NUGET 套件
|
||||||
|
uses: https://gitea.jsc.idv.tw/actions/cache-nuget@v0.0.2
|
||||||
|
- name: 復原專案
|
||||||
|
run: dotnet restore
|
||||||
if: ${{ hashFiles('nuget.config') == '' }}
|
if: ${{ hashFiles('nuget.config') == '' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: dotnet restore --configfile nuget.config
|
- name: 復原專案
|
||||||
|
run: dotnet restore --configfile nuget.config
|
||||||
if: ${{ hashFiles('nuget.config') != '' }}
|
if: ${{ hashFiles('nuget.config') != '' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: dotnet build --no-restore
|
- name: 建置專案
|
||||||
|
run: dotnet build --no-restore
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: dotnet test --no-restore --no-build
|
- name: 測試專案
|
||||||
|
run: dotnet test --no-restore --no-build
|
||||||
shell: bash
|
shell: bash
|
||||||
Reference in New Issue
Block a user