Skip to content

Commit

Permalink
Add GitHub CI workflow
Browse files Browse the repository at this point in the history
I'm experimenting with GitHub actions for various purposes such as CI builds and automated releases. This is a first attempt.
  • Loading branch information
drewnoakes committed Jan 29, 2024
1 parent 8a71b59 commit 5442b2b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:

push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

ununtu:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore
run: dotnet restore MetadataExtractor.sln
- name: Build
run: dotnet build MetadataExtractor.sln --configuration Release
- name: Test net7.0
run: dotnet test --verbosity normal --configuration Release --no-build -f net7.0 MetadataExtractor.Tests/MetadataExtractor.Tests.csproj

windows:
runs-on: windows-latest
env:
DOTNET_NOLOGO: true
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore
run: dotnet restore MetadataExtractor.sln
- name: Build
run: dotnet build MetadataExtractor.sln --configuration Release
- name: Test net7.0
run: dotnet test --verbosity normal --configuration Release --no-build -f net7.0 MetadataExtractor.Tests\MetadataExtractor.Tests.csproj
- name: Test net462
run: dotnet test --verbosity normal --configuration Release --no-build -f net462 MetadataExtractor.Tests\MetadataExtractor.Tests.csproj

0 comments on commit 5442b2b

Please sign in to comment.