bump: Release 1.1.0 #103
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: Workflow | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: { } | |
jobs: | |
validate-renovate-config: | |
uses: BlindfoldedSurgery/renovate-config/.github/workflows/validate.yml@main | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- uses: asdf-vm/actions/install@v3 | |
- name: Get dependencies | |
run: dart pub get | |
- name: Run tests | |
run: dart test --file-reporter json:test-results.json --coverage=.coverage | |
- name: Install coverage package | |
run: dart pub global activate coverage | |
- name: Convert to LCOV | |
run: dart pub global run coverage:format_coverage --report-on=lib --lcov -o ./.coverage/lcov.info -i ./.coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: .coverage/lcov.info | |
check-format: | |
name: Check Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- uses: asdf-vm/actions/install@v3 | |
- name: Check example formatting | |
run: dart format example --set-exit-if-changed | |
- name: Check lib formatting | |
run: dart format lib --set-exit-if-changed | |
- name: Check test formatting | |
run: dart format test --set-exit-if-changed | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- uses: asdf-vm/actions/install@v3 | |
- name: Get dependencies | |
run: dart pub get | |
- name: Run Analysis | |
run: dart analyze --fatal-infos |