Skip to content

Commit

Permalink
Merge generated-grpc into quality-go
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 2, 2023
1 parent 0a8a686 commit e5cd305
Showing 1 changed file with 16 additions and 47 deletions.
63 changes: 16 additions & 47 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ jobs:
"end-to-end",
"common",
]

exclude:
- os: windows
subproject: wsl-pro-service
- os: ubuntu
subproject: end-to-end
include:
- subproject: agentapi
needs-flutter: true

runs-on: ${{ matrix.os }}-latest
steps:
Expand All @@ -49,6 +53,18 @@ jobs:
uses: actions/setup-go@v4
with:
go-version-file: ${{ matrix.subproject }}/go.mod
- name: Set up flutter
uses: subosito/flutter-action@v2
if: matrix.needs-flutter != ''
with:
channel: 'stable'
flutter-version: ${{ env.flutter-version }}
- name: Install Dart protoc plugin
if: matrix.needs-flutter != ''
shell: bash
working-directory: ${{ matrix.subproject }}
run: |
dart pub global activate protoc_plugin
- name: Quality check
uses: canonical/desktop-engineering/gh-actions/go/code-sanity@main
with:
Expand Down Expand Up @@ -205,50 +221,3 @@ jobs:
# uses: codecov/codecov-action@v3
# with:
# file: /tmp/coverage.out

generated-grpc:
name: gRPC files are up to date
runs-on: ubuntu-latest
container: ubuntu:rolling
strategy:
fail-fast: false
matrix:
subproject: [agentapi, wslserviceapi]
include:
- subproject: agentapi
needs-flutter: true
- subproject: wslserviceapi
needs-flutter: false
steps:
- name: Install git into the container
run: |
set -eu
DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt install -y ca-certificates git protobuf-compiler jq curl unzip xz-utils
- name: Set up git
# This step needs to be done before checkout so that the checkout respects clrf
uses: canonical/ubuntu-pro-for-windows/.github/actions/setup-git@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: "${{ matrix.subproject }}/go.mod"
- uses: subosito/flutter-action@v2
if: matrix.needs-flutter
with:
channel: 'stable'
flutter-version: ${{ env.flutter-version }}
- name: Install Dart protoc plugin
if: matrix.needs-flutter
shell: bash
working-directory: ${{ matrix.subproject }}
run: |
dart pub global activate protoc_plugin
- name: Check gRPC is up to date
uses: canonical/desktop-engineering/gh-actions/go/generate@main
with:
working-directory: ${{ matrix.subproject }}
tools-directory: "../tools"

0 comments on commit e5cd305

Please sign in to comment.