Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub CI workflow #383

Merged
merged 6 commits into from
Jan 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
drewnoakes marked this conversation as resolved.
Show resolved Hide resolved
- 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
drewnoakes marked this conversation as resolved.
Show resolved Hide resolved

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
drewnoakes marked this conversation as resolved.
Show resolved Hide resolved
- 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
Loading