Skip to content

Commit

Permalink
Add GitHub Actions as the CI runner
Browse files Browse the repository at this point in the history
We are working on consolidating all CI to GitHub Actions.
  • Loading branch information
jasonroelofs committed Mar 22, 2024
1 parent 61d0f2f commit 4c95028
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- 'main'
pull_request: {}

defaults:
run:
shell: bash

jobs:
test:
name: Test C# ${{ matrix.dotnet }}
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '3.x', '6.x', '7.x', '8.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup dotNet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}
cache: true
- name: Test
run: |
dotnet build -c Debug src/WorkOS.net/WorkOS.net.csproj
dotnet build -c Debug test/WorkOSTests/WorkOSTests.csproj
dotnet test -c Debug -f netcoreapp3.1 test/WorkOSTests/WorkOSTests.csproj

0 comments on commit 4c95028

Please sign in to comment.