From 980d27aefb4ad3a18870fcb57bb7b2ad64333e88 Mon Sep 17 00:00:00 2001 From: Rob Becker Date: Fri, 6 Sep 2024 12:13:17 -0600 Subject: [PATCH 1/3] Allow analyzer 6 --- .github/workflows/dart_ci.yaml | 2 +- pubspec.yaml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dart_ci.yaml b/.github/workflows/dart_ci.yaml index 29bfcf6..aebbbd7 100644 --- a/.github/workflows/dart_ci.yaml +++ b/.github/workflows/dart_ci.yaml @@ -23,7 +23,7 @@ jobs: - name: Install dependencies run: dart pub get - name: Validate dependencies - run: dart run dependency_validator + run: dart pub global activate dependency_validator && dart pub global run dependency_validator - name: Check formatting run: dart format --output=none --set-exit-if-changed . if: ${{ matrix.sdk == 'stable' }} diff --git a/pubspec.yaml b/pubspec.yaml index f7416b5..6d33816 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,12 +7,11 @@ environment: sdk: ">=2.12.0 <3.0.0" dependencies: - analyzer: ^5.0.0 + analyzer: '>=5.0.0 <7.0.0' build: ^2.0.3 collection: ^1.15.0 path: ^1.8.0 source_span: ^1.8.1 dev_dependencies: - dependency_validator: ^3.0.0 test: ^1.16.0 \ No newline at end of file From 3fdefdc5fa53fce1fb000409b6958f61688ba9c0 Mon Sep 17 00:00:00 2001 From: Rob Becker Date: Fri, 6 Sep 2024 12:20:08 -0600 Subject: [PATCH 2/3] remove 2.18.7 from the matrix --- .github/workflows/dart_ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dart_ci.yaml b/.github/workflows/dart_ci.yaml index aebbbd7..e01acee 100644 --- a/.github/workflows/dart_ci.yaml +++ b/.github/workflows/dart_ci.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - sdk: [ 2.18.7, 2.19.6, stable ] + sdk: [ 2.19.6, stable ] steps: - uses: actions/checkout@v2 - uses: dart-lang/setup-dart@v1 From 6a9d7ec9dc386acb2bf5d2243b7cd1af3d82d964 Mon Sep 17 00:00:00 2001 From: Rob Becker Date: Fri, 6 Sep 2024 12:22:13 -0600 Subject: [PATCH 3/3] only 1 SBOM please --- .github/workflows/dart_ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dart_ci.yaml b/.github/workflows/dart_ci.yaml index e01acee..8694b91 100644 --- a/.github/workflows/dart_ci.yaml +++ b/.github/workflows/dart_ci.yaml @@ -32,6 +32,7 @@ jobs: - name: Run tests run: dart test - uses: anchore/sbom-action@v0 + if: ${{ matrix.sdk == 'stable' }} with: path: ./ format: cyclonedx-json