diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..eb72653 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @Workiva/fedx \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b540659 --- /dev/null +++ b/.github/dependabot.yml @@ -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"] \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..1dfa2cf --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,40 @@ +name: CI + +on: + pull_request: + push: + branches: + - 'master' + - 'test_consume_*' + tags: + - '**' + +jobs: + build: + uses: Workiva/gha-dart-oss/.github/workflows/build.yaml@v0.1.5 + + checks: + uses: Workiva/gha-dart-oss/.github/workflows/checks.yaml@v0.1.5 + + test: + strategy: + fail-fast: false + matrix: + sdk: [ 2.19.6, stable, beta ] + uses: Workiva/gha-dart-oss/.github/workflows/test-unit.yaml@v0.1.5 + 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 diff --git a/.github/workflows/dart_ci.yaml b/.github/workflows/dart_ci.yaml deleted file mode 100644 index f22689a..0000000 --- a/.github/workflows/dart_ci.yaml +++ /dev/null @@ -1,56 +0,0 @@ -name: Dart CI - -on: - push: - branches: - - 'master' - - 'test_consume_*' - tags: - - '*' - pull_request: - branches: - - '*' - -jobs: - format: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dart-lang/setup-dart@v1 - with: - sdk: 2.19.6 - - run: dart format --set-exit-if-changed -o none . - test: - 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 }} - - run: dart pub get - - run: dart run dependency_validator - - run: dart analyze - - run: dart test test/lib - - run: dart test test/bin - - uses: anchore/sbom-action@v0 - if: ${{ matrix.sdk == 'stable' }} - with: - path: ./ - format: cyclonedx-json - 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 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..ceca139 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -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/publish.yaml@v0.1.5 \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index b7fd9a5..a5141df 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 @@ -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