Skip to content

set version to 1.1.2 #17

set version to 1.1.2

set version to 1.1.2 #17

Workflow file for this run

name: build
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
publish:
environment: ${{ inputs.environment }}
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Setup Dart'
uses: dart-lang/[email protected]
- name: 'Get Packages'
run: dart pub get
- name: Activate coverage package
run: dart pub global activate coverage
- name: Collect coverage in json
run: mkdir coverage & dart run test --coverage=./coverage
- name: Convert coverage to lcov
run: dart pub global run coverage:format_coverage --report-on=lib --report-on=example --report-on=bin -l -o ./coverage/lcov.info -i ./coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
file: ./coverage/lcov.info
name: codecov-mdmoney
- name: 'Dry Run Publishing'
run: dart pub publish --dry-run
- name: 'Publish Artifact'
run: dart pub publish --force