fix export toConstDateTime(). (#15) #102
Workflow file for this run
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: build | |
on: [push, pull_request] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
sdk: [stable, beta, dev] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.sdk }} | |
- name: Install dependencies | |
run: dart pub get | |
- name: Check formatting | |
run: dart format --set-exit-if-changed . | |
- name: Analyze code | |
run: dart analyze --fatal-warnings . | |
- name: Run test on Chrome | |
run: dart test --platform chrome | |
continue-on-error: true | |
- name: Run tests | |
run: | | |
dart pub global activate coverage | |
dart pub global run coverage:test_with_coverage | |
- name: Run pana | |
run: | | |
dart pub global activate pana | |
dart pub global run pana --exit-code-threshold 0 --no-warning . | |
- name: Validate example | |
run: dart run example/const_date_time_example.dart | |
- name: Upload code coverage | |
if: ${{ matrix.sdk == 'stable' && matrix.os == 'ubuntu-latest' }} | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage/lcov.info |