Я определил файл рабочего процесса GitHub для сборки apk отладки в основной ветке и разветвил, откуда идет PR, затем сравнил apk с помощью diffuse. Файл рабочего процесса возвращает ошибку: Ошибка на каждом шаге должна определять ключ uses
или run
. Смотрите рабочий процесс ниже. Как мне решить эту ошибку
name: Compare APKs
on:
pull_request:
branches: [ master ]
paths:
- '.github/workflows/**'
- 'api/**'
- 'client/flutter/pubspec.yaml'
- 'client/flutter/pubspec.lock'
- 'client/flutter/ios/**'
- 'client/flutter/android/**'
jobs:
build-master:
name: Build Master APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- run: git clone https://github.com/flutter/flutter.git --depth 1 -b v1.12.13+hotfix.8 _flutter
- run: echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin"
- run: flutter pub get
working-directory: ./client/flutter
- name: Build Master APK
- run:
futter run
mv app/build/outputs/apk/debug/app-debug.apk app/build/outputs/apk/debug/app-master.apk
working-directory: ./client/flutter
- name: Upload APK
- uses: actions/upload-artifact@v1
with:
name: apk
path: app/build/outputs/apk/debug/app-master.apk
- run: git diff --exit-code
build-pr:
name: Build PR APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- run: git clone https://github.com/flutter/flutter.git --depth 1 -b v1.12.13+hotfix.8 _flutter
- run: echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin"
- run: flutter pub get
working-directory: ./client/flutter
- name: Build PR APK
- run:
futter run
mv app/build/outputs/apk/debug/app-debug.apk app/build/outputs/apk/debug/app-pr.apk
working-directory: ./client/flutter
- name: Upload APK
- uses: actions/upload-artifact@v1
with:
name: apk
path: app/build/outputs/apk/debug/app-pr.apk
- run: git diff --exit-code
diffuse:
needs: [build-master, build-pr]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Download APKs
- uses: actions/download-artifact@v1
with:
name: apk
- name: Execute Diffuse
- run: ./diffuse diff apk/app-master.apk apk/app-pr.apk