diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..c62b908 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,28 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal diff --git a/README.md b/README.md index 4b36a42..4ffe3f9 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ [Base 10] to [base 36] and vice versa. -[build]: https://ci.appveyor.com/project/TallesL/net-36 -[build-img]: https://ci.appveyor.com/api/projects/status/github/tallesl/net-36?svg=true +[build]: https://github.com/tallesl/net-36/actions +[build-img]: https://github.com/tallesl/net-36/actions/workflows/dotnet.yml/badge.svg [nuget]: https://www.nuget.org/packages/36 [nuget-img]: https://badge.fury.io/nu/36.svg [Base 10]: https://en.wikipedia.org/wiki/Decimal @@ -40,4 +40,4 @@ Base36.Compare("Z", "A"); // -1 // Checking for overflow Base36.WouldOverflow("BARRELROLL"); // False Base36.WouldOverflow("DOABARRELROLL"); // True -``` \ No newline at end of file +```