Skip to content

Commit

Permalink
Add GitHub workflows for tests and AOT
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjsaid committed Oct 18, 2024
1 parent 65c368b commit 4686afd
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/aot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: AOT Compatible

on:
push:
pull_request:
branches: [main]

env:
DOTNET_VERSION: "8.0.x"

jobs:
tests:
name: aot
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Install dependencies
run: dotnet restore

- name: Publish AOT
run: cd ./src/Levenshtypo.Aot && dotnet publish --runtime win-x64 --configuration Release

30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Automated Tests

on:
push:
pull_request:
branches: [main]

env:
DOTNET_VERSION: "8.0.x"

jobs:
tests:
name: tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore --verbosity normal

0 comments on commit 4686afd

Please sign in to comment.