Skip to content

Commit

Permalink
Use desktop engineering's has-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 2, 2023
1 parent 6c9a3da commit 8b3bd03
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,17 @@ jobs:
if: always() && !cancelled()
working-directory: ${{ matrix.subproject }}
run: |
# Ensuring there is no diff between current and generated go.mod and go.sum files
# Updating go.mod and go.sum files
set -eu
echo "::group::Download dependencies"
go mod tidy
echo "::endgroup::"
- name: Ensure module files are up to date
uses: ./.github/actions/check-diff
uses: canonical/desktop-engineering/gh-actions/common/has-diff@main
with:
files-to-validate: ${{ matrix.subproject }}/**/go.mod ${{ matrix.subproject }}/**/go.sum
working-directory: ${{ matrix.subproject }}
fail-on-diff: true
- name: Build
shell: bash
if: always() && !cancelled()
Expand Down Expand Up @@ -124,9 +125,11 @@ jobs:
flutter-version: ${{ env.flutter-version }}
package-dir: '${{ matrix.package }}'
run-build-runner: ${{ contains(matrix.package, 'ubuntupro') }}
- uses: ./.github/actions/check-diff
- name: Ensure module files are up to date
uses: canonical/desktop-engineering/gh-actions/common/has-diff@main
with:
files-to-validate: '${{ matrix.package }}/**/*.dart'
working-directory: ${{ matrix.package }}
fail-on-diff: true

flutter-integration:
name: "Flutter integration tests"
Expand Down

0 comments on commit 8b3bd03

Please sign in to comment.