Add build test
This commit is contained in:
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@@ -15,6 +15,7 @@ on:
|
||||
env:
|
||||
IS_GITHUB_ACTIONS: 1
|
||||
CHANNEL: "${{ inputs.channel }}"
|
||||
FLUTTER_VERSION: '3.16.x'
|
||||
NDK_VERSION: r26b
|
||||
UPLOAD_ARTIFACT: "${{ inputs.upload-artifact }}"
|
||||
TAG_NAME: "${{ inputs.tag-name }}"
|
||||
@@ -27,8 +28,24 @@ env:
|
||||
TARGET_NAME_dmg: "Hiddify-MacOS"
|
||||
TARGET_NAME_pkg: "Hiddify-MacOS-Installer"
|
||||
TARGET_NAME_ipa: "Hiddify-iOS"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||
channel: 'stable'
|
||||
cache: true
|
||||
- name: Prepare
|
||||
run: make linux-prepare
|
||||
- name: Test
|
||||
run: flutter test
|
||||
|
||||
build:
|
||||
needs: test
|
||||
permissions: write-all
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -64,7 +81,7 @@ jobs:
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: '3.16.x'
|
||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||
channel: 'stable'
|
||||
cache: true
|
||||
- name: Setup Java
|
||||
|
||||
Reference in New Issue
Block a user