Skip to content

Commit e7ac34c

Browse files
authored
Fix up github workflows (#176)
* fix up GHA workflows * remove stable from matrix too
1 parent fbb0052 commit e7ac34c

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

Diff for: .github/workflows/auto_publish.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
name: Publish
3+
4+
on:
5+
push:
6+
tags:
7+
# Releases
8+
- '[0-9]+.[0-9]+.[0-9]+'
9+
10+
permissions:
11+
contents: write
12+
id-token: write
13+
pull-requests: write
14+
15+
jobs:
16+
publish:
17+
name: Publish to pub.dev
18+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

Diff for: .github/workflows/dart_ci.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ on:
99
branches:
1010
- '**'
1111

12+
permissions:
13+
contents: write
14+
id-token: write
15+
pull-requests: write
16+
1217
jobs:
1318
test:
1419
runs-on: ubuntu-latest
1520
continue-on-error: true
1621
strategy:
1722
fail-fast: false
1823
matrix:
19-
sdk: [ 2.18.7, 2.19.6, stable ]
24+
sdk: [ 2.19.6 ]
2025
steps:
2126
- uses: actions/checkout@v2
2227
- uses: dart-lang/setup-dart@v1
@@ -26,10 +31,15 @@ jobs:
2631
run: dart pub get
2732
- name: Verify formatting
2833
run: dart format --output=none --set-exit-if-changed .
29-
if: ${{ matrix.sdk == '2.18.7' }}
34+
if: ${{ matrix.sdk == '2.19.6' }}
3035
- name: Analyze project source
3136
run: dart analyze
3237
- name: Run tests on chrome
3338
run: dart run build_runner test --delete-conflicting-outputs -- -p chrome
3439
- name: Run tests in release mode on chrome
3540
run: dart run build_runner test --release --delete-conflicting-outputs -- -p chrome
41+
- name: Publish SBOM
42+
uses: anchore/sbom-action@v0
43+
with:
44+
path: ./
45+
format: cyclonedx-json

0 commit comments

Comments
 (0)