Skip to content

Commit d39304a

Browse files
committed
Add dart format check to CI workflow
Disable some workflow steps
1 parent 0323a14 commit d39304a

1 file changed

Lines changed: 29 additions & 18 deletions

File tree

.github/workflows/test.yaml

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,41 @@ name: Test
33
on: [pull_request]
44
jobs:
55
test:
6-
runs-on: ubuntu-20.04
6+
runs-on: ubuntu-24.04
77
steps:
88
- name: Prepare repository
99
uses: actions/checkout@v4
1010
- name: Install Flutter
1111
uses: subosito/flutter-action@v2
1212
with:
13-
flutter-version: '3.19.6'
13+
flutter-version: '3.38.1'
1414
channel: 'stable'
15-
- name: Setup | Rust
16-
uses: dtolnay/rust-toolchain@stable
17-
with:
18-
components: clippy
15+
16+
# - name: Setup | Rust
17+
# uses: dtolnay/rust-toolchain@stable
18+
# with:
19+
# components: clippy
1920
- name: Checkout submodules
2021
run: git submodule update --init --recursive
21-
- name: install dependencies
22-
run: |
23-
cargo install cargo-ndk
24-
rustup target add x86_64-unknown-linux-gnu
25-
sudo apt clean
26-
sudo apt update
27-
sudo apt install -y unzip automake build-essential file pkg-config git python libtool libtinfo5 cmake openjdk-8-jre-headless libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev llvm debhelper libclang-dev opencl-headers libssl-dev ocl-icd-opencl-dev libc6-dev-i386
28-
- name: Build Epic Cash
22+
# - name: install dependencies
23+
# run: |
24+
# cargo install cargo-ndk
25+
# rustup target add x86_64-unknown-linux-gnu
26+
# sudo apt clean
27+
# sudo apt update
28+
# sudo apt install -y meson ninja-build libglib2.0-dev unzip automake build-essential file pkg-config git python3 libtool cmake openjdk-8-jre-headless libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev llvm debhelper libclang-dev opencl-headers libssl-dev ocl-icd-opencl-dev libc6-dev-i386
29+
# - name: Build Epic Cash
30+
#run: |
31+
#cd crypto_plugins/flutter_libepiccash/scripts/linux/
32+
#./build_all.sh
33+
34+
- name: Configure app
2935
run: |
30-
cd crypto_plugins/flutter_libepiccash/scripts/linux/
31-
./build_all.sh
32-
- name: Get dependencies
33-
run: flutter pub get
36+
cd scripts
37+
yes yes | ./build_app.sh -v "0.0.1" -b "1" -p "linux" -a "stack_wallet" || true
38+
39+
# - name: Get dependencies
40+
# run: flutter pub get
3441
- name: Create temp files
3542
id: secret-file1
3643
run: |
@@ -85,6 +92,10 @@ jobs:
8592
BITCOINCASH_TEST: ${{ secrets.BITCOINCASH_TEST }}
8693
NAMECOIN_TEST: ${{ secrets.NAMECOIN_TEST }}
8794
PARTICL_TEST: ${{ secrets.PARTICL_TEST }}
95+
96+
- name: Verify Dart formatting
97+
run: dart format --output=none --set-exit-if-changed .
98+
8899
# - name: Analyze
89100
# run: flutter analyze
90101
- name: Test

0 commit comments

Comments
 (0)