Skip to content

Commit

Permalink
chore: run sample in ci to ensure it is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
latonz committed Aug 10, 2023
1 parent f7c566f commit 056701a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,19 @@ on:
push:
branches:
- main
paths:
- 'src/**'
- 'benchmarks/**'
- 'global.json'
- 'Directory.Build.props'
pull_request:
branches:
- main
paths:
- 'src/**'
- 'benchmarks/**'
- 'global.json'
- 'Directory.Build.props'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ jobs:
# don't run dotnet format for whitespace formatting as this is done by csharpier
- run: dotnet format style --verify-no-changes
- run: dotnet format analyzers --verify-no-changes
sample:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3.2.0
- run: dotnet run --project ./samples/Riok.Mapperly.Sample
test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -36,7 +41,6 @@ jobs:
with:
fail_ci_if_error: true
package:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 056701a

Please sign in to comment.