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

implemented gha-dart-oss #48

Closed
wants to merge 3 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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Workiva/fedx
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
gha:
patterns: ["*"]

- package-ecosystem: pub
directory: /
schedule:
interval: weekly
groups:
major:
update-types: ["major"]
minor:
update-types: ["minor", "patch"]
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
pull_request:
push:
branches:
- 'master'
- 'test_consume_*'
tags:
- '**'

jobs:
build:
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]

checks:
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]

test:
strategy:
fail-fast: false
matrix:
sdk: [ 2.19.6, stable, beta ]
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]
with:
sdk: ${{ matrix.sdk }}

example:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ 2.19.6, stable, beta ]
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Example consumer tests
run: ./tool/test_example.sh
56 changes: 0 additions & 56 deletions .github/workflows/dart_ci.yaml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish

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

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

jobs:
publish:
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ dependencies:
glob: ^2.0.1
json_annotation: ^4.1.0
path: ^1.8.0
test: ^1.17.12
test_core: ">=0.4.2 <0.6.0"
yaml: ^3.1.0

Expand All @@ -29,6 +28,7 @@ dev_dependencies:
build_web_compilers: '>=3.0.0 <5.0.0'
dependency_validator: ^3.1.0
pedantic: ^1.11.1
test: ^1.17.12
test_descriptor: ^2.0.0
test_process: ^2.0.2

Expand Down
Loading