Skip to content

Commit

Permalink
Add ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 authored Dec 27, 2024
1 parent e2d2e0e commit f0c9802
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [ "main", "dev" ]
paths: [ ".github/workflows/ci.yml", "Src/**", "Tools/**", "NationsConverter.sln" ]
pull_request:
branches: [ "main", "dev" ]
paths: [ ".github/workflows/ci.yml", "Src/**", "Tools/**", "NationsConverter.sln" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore -p:ContinuousIntegrationBuild=true
- name: Test
run: dotnet test --no-build --verbosity normal

0 comments on commit f0c9802

Please sign in to comment.