Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
name: CI

on: [push, pull_request]
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
test:
name: Run tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-20.04, windows-2022, macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 2.3.5
- uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # 1.8.0
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Setup .NET
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab
with:
dotnet-version: 5.0.202
- run: dotnet test

- name: Run tests
run: dotnet test
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@ name: Publish

on:
push:
branches: [main]
branches:
- main
workflow_dispatch:

jobs:
publish:
name: Publish NuGet package
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 2.3.5
- uses: rohith/publish-nuget@c12b8546b67672ee38ac87bea491ac94a587f7cc # 2.5.5
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Publish NuGet package
uses: rohith/publish-nuget@c12b8546b67672ee38ac87bea491ac94a587f7cc
with:
PROJECT_FILE_PATH: src/Exercism.Tests/Exercism.Tests.csproj
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
Expand Down
Loading