-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add Makefile - Add Dart 3 support - Bump HTTP dependency to v1.1
- Loading branch information
Showing
3 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Run unit tests on PR | ||
|
||
on: | ||
pull_request: ~ | ||
workflow_dispatch: ~ | ||
|
||
jobs: | ||
|
||
# Run unit tests | ||
tests: | ||
name: 'Run unit tests' | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout repository | ||
- uses: actions/checkout@v3 | ||
|
||
# Setup Dart SDK | ||
- uses: dart-lang/setup-dart@main | ||
|
||
# Set temporary version number | ||
- name: Set temporary version number | ||
uses: jacobtomlinson/[email protected] | ||
with: | ||
find: "VERSIONADDEDBYGITHUB" | ||
replace: "1.0.0" | ||
regex: false | ||
|
||
# Minimal package setup | ||
- name: Install dependencies | ||
run: dart pub get | ||
working-directory: ${{ inputs.working-directory }} | ||
|
||
# Run unit tests | ||
- name: Run unit tests | ||
run: make unit_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## help - Display help about make targets for this Makefile | ||
help: | ||
@cat Makefile | grep '^## ' --color=never | cut -c4- | sed -e "`printf 's/ - /\t- /;'`" | column -s "`printf '\t'`" -t | ||
|
||
## unit_tests - Run unit tests | ||
unit_tests: | ||
dart test test/tests.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters