Skip to content

Commit

Permalink
Add GitHub action configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tallesl committed May 23, 2024
1 parent f6a7bcd commit aa78c18
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -40,4 +40,4 @@ Base36.Compare("Z", "A"); // -1
// Checking for overflow
Base36.WouldOverflow("BARRELROLL"); // False
Base36.WouldOverflow("DOABARRELROLL"); // True
```
```

0 comments on commit aa78c18

Please sign in to comment.