-
Notifications
You must be signed in to change notification settings - Fork 14
45 lines (45 loc) · 1.17 KB
/
run-tests.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
39
40
41
42
43
44
45
name: Run Tests
on:
pull_request:
push:
branches:
- master
jobs:
spec-test:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: setup ruby environment
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
bundler-cache: true
- name: run unit tests
run: bundle exec rake
- name: run e2e tests
run: |
bundle exec fastlane test
bundle exec fastlane test_no_version_code
regression-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "11"
- uses: subosito/[email protected]
with:
flutter-version: "2.0.6"
- run: flutter create regression_test_app
- name: Run regression test
working-directory: ./regression_test_app/android
run: |
cp -r ../../regression/fastlane .
cp ../../regression/Gemfile .
bundle install
bundle exec fastlane regression