Skip to content

correct path

correct path #58

Workflow file for this run

name: Publish plugin
on:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Note: This workflow uses the latest stable version of the Dart SDK.
# You can specify other versions if desired, see documentation here:
# https://github.com/dart-lang/setup-dart/blob/main/README.md
- uses: dart-lang/[email protected]
# - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
- name: Install dependencies
run: dart pub get
- name: Run build_runner
run: dart run build_runner build
- name: Analyze project source
run: dart analyze --fatal-infos
- name: Run tests
run: dart test --coverage="coverage"
- name: Install coverage tools
run: dart pub global activate coverage
- name: Format Coverage
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/coverage.lcov -i ./coverage
- name: Check Publish Warnings
run: dart pub publish --dry-run
- name: Upload Coverage to CodeCov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage/coverage.lcov
publish:
needs: 'test'
permissions:
id-token: write # Required for authentication using OIDC
uses: git-elliot/setup-dart/blob/main/.github/workflows/publish.yml@v1 # Added build_runner step

Check failure on line 51 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

invalid value workflow reference: references to workflows must be prefixed with format 'owner/repository/' or './' for local workflows
with:
environment: 'pub.dev'