@@ -3,31 +3,62 @@ name: Test Firestore
33on : pull_request
44
55jobs :
6- test :
7- name : Test Firestore If Changed
6+ test-chrome :
7+ name : Test Firestore on Chrome and Node If Changed
88 runs-on : ubuntu-latest
99
1010 steps :
11- - name : Checkout Repo
12- uses : actions/checkout@master
13- with :
14- # This makes Actions fetch all Git history so run-changed script can diff properly.
15- fetch-depth : 0
16- - name : Set up Node (14)
17- uses : actions/setup-node@v2
18- with :
19- node-version : 14.x
20- - name : install Chrome stable
21- run : |
22- sudo apt-get update
23- sudo apt-get install google-chrome-stable
24- - name : Bump Node memory limit
25- run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
26- - name : Test setup and yarn install
27- run : |
28- cp config/ci.config.json config/project.json
29- yarn
30- - name : build
31- run : yarn build:changed firestore
32- - name : Run tests if firestore or its dependencies has changed
33- run : yarn test:changed firestore
11+ - name : Checkout Repo
12+ uses : actions/checkout@master
13+ with :
14+ # This makes Actions fetch all Git history so run-changed script can diff properly.
15+ fetch-depth : 0
16+ - name : Set up Node (14)
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : 14.x
20+ - name : install Chrome stable
21+ run : |
22+ sudo apt-get update
23+ sudo apt-get install google-chrome-stable
24+ - name : Bump Node memory limit
25+ run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
26+ - name : Test setup and yarn install
27+ run : |
28+ cp config/ci.config.json config/project.json
29+ yarn
30+ - name : build
31+ run : yarn build:changed firestore
32+ - name : Run tests if firestore or its dependencies has changed
33+ run : yarn test:changed firestore
34+
35+ test-firefox :
36+ name : Test Firestore on Firefox If Changed
37+ runs-on : ubuntu-latest
38+
39+ steps :
40+ - name : install Firefox stable
41+ run : |
42+ sudo apt-get update
43+ sudo apt-get install firefox
44+ - name : Checkout Repo
45+ uses : actions/checkout@master
46+ with :
47+ # This makes Actions fetch all Git history so run-changed script can diff properly.
48+ fetch-depth : 0
49+ - name : Set up Node (14)
50+ uses : actions/setup-node@v2
51+ with :
52+ node-version : 14.x
53+ - name : Bump Node memory limit
54+ run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
55+ - name : Test setup and yarn install
56+ run : |
57+ cp config/ci.config.json config/project.json
58+ yarn
59+ - name : build
60+ run : yarn build:changed firestore
61+ - name : Run tests if firestore or its dependencies has changed
62+ run : xvfb-run yarn test:changed firestore
63+ env :
64+ BROWSERS : ' Firefox'
0 commit comments