Skip to content

feat: configure dart test to run serially to prevent race conditions #32

feat: configure dart test to run serially to prevent race conditions

feat: configure dart test to run serially to prevent race conditions #32

Workflow file for this run

name: Publish Package
on:
push:
tags:
# must align with the tag-pattern configured on pub.dev, often just replace
# with [0-9]+.[0-9]+.[0-9]+*
# - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v'
# If you prefer tags like '1.2.3', without the 'v' prefix, then use:
- '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: ''
# If you repository contains multiple packages consider a pattern like:
# - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+*'
workflow_dispatch:
jobs:
publish:
permissions:
id-token: write # This is required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: dart-lang/setup-dart@v1
- name: Dart SDK
run: dart --version
- uses: actions/checkout@v5
- name: Install dependencies
run: dart pub get
- name: Run tests
run: dart run test
- name: Build & Install Locally
run: dart pub global activate --source path .
- name: Format code
run: dart format .
- name: Build Runner
run: dart run build_runner build --delete-conflicting-outputs
- name: Check Publish Warnings
run: dart pub publish --dry-run
- name: Publish Package
run: dart pub publish --force