Skip to content

Commit

Permalink
Use Github actions to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Michel committed Oct 23, 2024
1 parent d397dfc commit 98b4e5e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

name: .NET build & test

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./Sources
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Test
run: dotnet test -c debug
- name: Build
run: dotnet build -c release
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

16 changes: 8 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

pushd Sources

dotnet restore && dotnet build
dotnet test EquTest/EquTest.csproj

popd
#!/usr/bin/env bash

pushd Sources

dotnet restore && dotnet build
dotnet test

popd

0 comments on commit 98b4e5e

Please sign in to comment.