Minor improvements to volume conversions of US units #93
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
name: Test | |
on: | |
push: | |
branches: | |
main | |
pull_request: | |
branches: | |
main | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Dart version | |
run: dart --version | |
- name: Download pub dependencies | |
run: dart pub get | |
- name: Validate formatting | |
run: | | |
dart format . | |
./.github/workflows/scripts/validate-formatting.sh | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Dart version | |
run: dart --version | |
- name: Download pub dependencies | |
run: dart pub get | |
- name: Run tests and format coverage | |
run: | | |
dart test --coverage=coverage | |
dart run coverage:format_coverage --lcov --in=coverage \ | |
--out=coverage/lcov.info --report-on=lib | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true |