-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.34 KB
/
browser-tests.yaml
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
39
40
41
42
43
44
45
46
47
name: browser tests
on:
push:
branches: [main]
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout own repository
uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter doctor -v
- name: Check formatting
run: dart format --line-length 80 --set-exit-if-changed lib integration_test
- name: Analyze code
run: flutter analyze lib integration_test
- name: Run chrome driver
run: |
git clone https://github.com/Bdaya-Dev/web_installers --branch new-chromedriver-urls
cd web_installers/packages/web_drivers
dart pub get
dart lib/web_driver_installer.dart chromedriver &
- name: Run browser tests
run: ./ci-integration-test.sh
- name: Git Commit Integration Test Reports
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add integration_test/reports
if [ -n "$(git status --porcelain)" ]; then
git commit -m "chore: added integration test reports"
git push
fi