Skip to content

Commit

Permalink
Fix up github workflows (#176)
Browse files Browse the repository at this point in the history
* fix up GHA workflows

* remove stable from matrix too
  • Loading branch information
robbecker-wf authored Apr 16, 2024
1 parent fbb0052 commit e7ac34c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
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

0 comments on commit e7ac34c

Please sign in to comment.