diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..2f4b573 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @Workiva/fedx diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..fb6abf8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + gha: + patterns: ["*"] + - package-ecosystem: pub + versioning-strategy: increase + directory: / + schedule: + interval: weekly \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..e5f5b51 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: CI + +on: + pull_request: + push: + branches: + - 'master' + 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-unit: + strategy: + matrix: + sdk: [ 2.19.6, stable ] + uses: Workiva/gha-dart-oss/.github/workflows/test-unit.yaml@v0.1.5 + with: + sdk: ${{ matrix.sdk }} diff --git a/.github/workflows/dart_ci.yml b/.github/workflows/dart_ci.yml deleted file mode 100644 index 81ce290..0000000 --- a/.github/workflows/dart_ci.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Dart CI - -on: - push: - branches: - - 'master' - - 'test_consume_*' - tags: - - '**' - pull_request: - branches: - - '**' - - -jobs: - build: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - sdk: [ 2.18.7, 2.19.6 ] - steps: - - uses: actions/checkout@v2 - - uses: dart-lang/setup-dart@v1 - with: - sdk: ${{ matrix.sdk }} - - - name: Install dependencies - run: dart pub get - - - name: Formatting - run: dart format --output=none --set-exit-if-changed . - if: ${{ matrix.sdk }} == '2.18.7' - - - name: Analysis - run: dart analyze - - - name: Tests - run: dart test --chain-stack-traces - - - name: Generate SBOM - uses: anchore/sbom-action@v0 - with: - path: ./ - format: cyclonedx-json - 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 ce85dbe..6ea75a9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,13 +12,11 @@ environment: dependencies: args: ^2.3.1 - glob: ^2.0.1 http: ^0.13.3 http_multi_server: ^3.2.1 io: ^1.0.3 logging: ^1.1.0 meta: ^1.8.0 - lints: ^2.0.1 pub_semver: ^2.1.2 shelf: ^1.2.0 shelf_proxy: ^1.0.0 @@ -28,6 +26,7 @@ dev_dependencies: # These two build deps are required by webdev. build_runner: ^2.1.2 build_web_compilers: ^3.0.0 + lints: ^2.0.1 shelf_static: ^1.1.0 sse: ^4.1.0