Skip to content

Commit 7390f2d

Browse files
Merge pull request #434 from Workiva/gha-dart-publish
FEDX-1595: implemented gha-dart-oss publish
2 parents 8d69db1 + 629d96c commit 7390f2d

File tree

3 files changed

+36
-22
lines changed

3 files changed

+36
-22
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5-
61
version: 2
72
updates:
8-
- package-ecosystem: "pub" # See documentation for possible values
9-
directory: "/" # Location of package manifests
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
groups:
8+
gha:
9+
patterns: ["*"]
10+
11+
- package-ecosystem: pub
12+
directory: /
1013
schedule:
11-
interval: "weekly"
12-
open-pull-requests-limit: 2
13-
ignore:
14-
- dependency-name: "*"
15-
update-types: ["version-update:semver-major"]
14+
interval: weekly
15+
groups:
16+
major:
17+
update-types: ["major"]
18+
minor:
19+
update-types: ["minor", "patch"]

.github/workflows/ci.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
name: CI
22

33
on:
4+
pull_request:
45
push:
56
branches:
67
- 'master'
78
- 'test_consume_*'
8-
pull_request:
9-
branches:
10-
- '**'
119

1210
permissions:
1311
pull-requests: write
1412
contents: write
1513
id-token: write
1614

1715
jobs:
16+
build:
17+
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]
18+
1819
dart:
1920
strategy:
2021
fail-fast: false
@@ -38,10 +39,4 @@ jobs:
3839
if: ${{ matrix.sdk == 'stable' && matrix.os == 'ubuntu' }}
3940
run: dart run dart_dev format --check
4041
- name: Tests
41-
run: dart run dart_dev test ${{ matrix.sdk != '2.19.6' && '--test-args="--exclude-tags dart2"' || '' }}
42-
- name: SBOM
43-
if: ${{ matrix.sdk == '2.19.6' && matrix.os == 'ubuntu' }}
44-
uses: anchore/sbom-action@v0
45-
with:
46-
path: ./ # Assuming actions/checkout default location
47-
format: cyclonedx-json
42+
run: dart run dart_dev test ${{ matrix.sdk != '2.19.6' && '--test-args="--exclude-tags dart2"' || '' }}

.github/workflows/publish.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
pull-requests: write
12+
13+
jobs:
14+
publish:
15+
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]

0 commit comments

Comments
 (0)