mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 10:29:06 +02:00
Test different GH action workflow
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -3,8 +3,6 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
|
||||||
FLUTTER_VERSION: "stable"
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Analyze and test
|
name: Analyze and test
|
||||||
@@ -12,17 +10,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- id: puro_version
|
- name: Get Flutter version from .puro.json
|
||||||
|
id: puro_version
|
||||||
run: |
|
run: |
|
||||||
content=`cat .puro.json`
|
if [[ -f ".puro.json" ]]; then
|
||||||
# the following lines are only required for multi line json
|
flutter_version=$(jq -r '.env' .puro.json)
|
||||||
content="${content//'%'/'%25'}"
|
echo "FLUTTER_VERSION=$flutter_version" >> $GITHUB_ENV
|
||||||
content="${content//$'\n'/'%0A'}"
|
else
|
||||||
content="${content//$'\r'/'%0D'}"
|
echo "Warning: .puro.json not found, using default Flutter stable channel."
|
||||||
# end of optional handling for multi line json
|
echo "FLUTTER_VERSION=stable" >> $GITHUB_ENV
|
||||||
echo "::set-output name=packageJson::$content"
|
fi
|
||||||
- run: |
|
|
||||||
export FLUTTER_VERSION="${{fromJson(steps.puro_version.outputs.packageJson).env}}"
|
|
||||||
- name: Setup Flutter
|
- name: Setup Flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user