Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix up GHA workflows #175

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/auto_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

name: Publish

on:
push:
tags:
# Releases
- '[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: write
id-token: write
pull-requests: write

jobs:
publish:
name: Publish to pub.dev
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
14 changes: 12 additions & 2 deletions .github/workflows/dart_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@ on:
branches:
- '**'

permissions:
contents: write
id-token: write
pull-requests: write

jobs:
test:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
sdk: [ 2.18.7, 2.19.6, stable ]
sdk: [ 2.19.6 ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
Expand All @@ -26,10 +31,15 @@ jobs:
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
if: ${{ matrix.sdk == '2.18.7' }}
if: ${{ matrix.sdk == '2.19.6' }}
- name: Analyze project source
run: dart analyze
- name: Run tests on chrome
run: dart run build_runner test --delete-conflicting-outputs -- -p chrome
- name: Run tests in release mode on chrome
run: dart run build_runner test --release --delete-conflicting-outputs -- -p chrome
- name: Publish SBOM
uses: anchore/sbom-action@v0
with:
path: ./
format: cyclonedx-json
Loading