Explorar o código

Merge pull request #203 from bertt/add_github_action

Add GitHub action
Vicente Penades %!s(int64=2) %!d(string=hai) anos
pai
achega
bac789a221
Modificáronse 1 ficheiros con 24 adicións e 0 borrados
  1. 24 0
      .github/workflows/dotnet.yml

+ 24 - 0
.github/workflows/dotnet.yml

@@ -0,0 +1,24 @@
+name: SharpGLTF
+
+on: [push, pull_request]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        dotnet-version: [ '6.0.x' ]
+
+    steps:
+      - uses: actions/checkout@v4
+      - name: Setup dotnet ${{ matrix.dotnet-version }}
+        uses: actions/setup-dotnet@v3
+        with:
+          dotnet-version: ${{ matrix.dotnet-version }}
+      - name: Install dependencies
+        run: dotnet restore
+      - name: Build
+        run: dotnet build
+      - name: Test
+        run: dotnet test ./tests/SharpGLTF.Cesium.Tests/SharpGLTF.Cesium.Tests.csproj