-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (38 loc) · 1.15 KB
/
test_frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Test Frontend
on:
push:
branches-ignore:
- 'main'
paths:
- 'frontend/**'
- '.github/workflows/test_frontend.yml'
# Cancel inprogress runs if new commit pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: [self-hosted, linux, large, jammy, x64]
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.3'
channel: 'stable'
- run: flutter pub get
- run: flutter pub run build_runner build
- run: dart format --set-exit-if-changed lib
- run: flutter analyze
- name: Install Google Chrome
run: |
sudo apt update -y
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P /tmp
sudo apt install /tmp/google-chrome-stable_current_amd64.deb -y
- uses: nanasess/setup-chromedriver@v2
- run: flutter test --platform chrome
- run: chromedriver --port=4444 &
- run: ./run_integration_tests.sh
- run: flutter build web