Add continuous integration

This commit is contained in:
Mooshua 2023-08-13 00:15:51 -07:00
parent 4af55e27a9
commit e9745348a3
1 changed files with 28 additions and 0 deletions

28
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Continuous Integration
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
framework-version: [ 'net6.0', 'net7.0' ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
dotnet-quality: 'ga'
- name: Install dependencies
run: dotnet restore
- name: Build for ${{ matrix.framework-version }}
run: dotnet build BattleBitAPI --framework ${{ matrix.framework-version }} --configuration Release --no-restore