Skip to content

Commit

Permalink
Create first action
Browse files Browse the repository at this point in the history
  • Loading branch information
datacute authored Sep 22, 2024
1 parent 13a39e5 commit 27a580f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:

env:
BUILD_CONFIG: 'Release'
SOLUTION: 'EmbeddedResourceProperty.sln'

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 $SOLUTION

- name: Build
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore

- name: Run tests
run: dotnet test /p:Configuration=$env:BUILD_CONFIG --no-restore --no-build --verbosity normal

0 comments on commit 27a580f

Please sign in to comment.