ci
This commit is contained in:
39
.gitea/workflows/ci.yaml
Normal file
39
.gitea/workflows/ci.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: |
|
||||
8.0.x
|
||||
|
||||
- name: Restore SQLLinter
|
||||
run: dotnet restore SQLLinter
|
||||
|
||||
- name: Build SQLLinter
|
||||
run: dotnet build SQLLinter --no-restore -c Release
|
||||
|
||||
- name: Test SQLLinter
|
||||
run: dotnet test SQLLinter --no-build -c Release --collect:"XPlat Code Coverage" --logger "trx;LogFileName=test-results.trx"
|
||||
|
||||
- name: Upload test results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: test-results
|
||||
path: |
|
||||
**/TestResults/*.trx
|
||||
**/TestResults/*/coverage.cobertura.xml
|
||||
Reference in New Issue
Block a user