From 7072593bab6c36d5e5fa6b1d9f8b183753e8422d Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Tue, 20 Feb 2024 19:20:20 +0330 Subject: [PATCH] Add build test --- .github/workflows/build.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f9f9e4f..abb4901e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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