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
46 changes: 46 additions & 0 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: benchmarks
permissions: read-all

on:
pull_request:
branches:
paths:
- '.github/workflows/benchmarks.yaml'
- 'benchmarks/**'
- 'tool/setup.sh'
push:
branches: [ master ]
paths:
- '.github/workflows/benchmarks.yaml'
- 'benchmarks/**'
- 'tool/setup.sh'
schedule:
- cron: '0 0 * * 0' # weekly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to run this periodically?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to check - in case some dependency update brings in a bug or similar. Also it's very low effort.


jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: benchmarks
strategy:
matrix:
sdk: dev

steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c
with:
sdk: ${{matrix.sdk}}

- run: dart pub get

- run: dart analyze --fatal-infos

- run: dart format --output=none --set-exit-if-changed .

- run: ./../tool/setup.sh

- run: ./tool/compile_protos.sh

- run: dart tool/compile_benchmarks.dart
Loading
Loading