77 DETECT_CHROMEDRIVER_VERSION : true
88
99jobs :
10- test :
11- name : Test Auth If Changed
10+ test-chrome :
11+ name : Test Auth on Chrome and Node If Changed
1212 runs-on : ubuntu-latest
1313
1414 steps :
15- # install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo
16- - name : install Chrome stable
17- run : |
18- sudo apt-get update
19- sudo apt-get install google-chrome-stable
20- - name : Checkout Repo
21- uses : actions/checkout@master
22- with :
23- # This makes Actions fetch all Git history so run-changed script can diff properly.
24- fetch-depth : 0
25- - name : Set up Node (14)
26- uses : actions/setup-node@v2
27- with :
28- node-version : 14.x
29- - name : Bump Node memory limit
30- run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
31- - name : Test setup and yarn install
32- run : |
33- cp config/ci.config.json config/project.json
34- yarn
35- - name : build
36- run : yarn build:changed auth
37- - name : Run tests on changed packages
38- run : xvfb-run yarn test:changed auth
15+ # install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo
16+ - name : install Chrome stable
17+ run : |
18+ sudo apt-get update
19+ sudo apt-get install google-chrome-stable
20+ - name : Checkout Repo
21+ uses : actions/checkout@master
22+ with :
23+ # This makes Actions fetch all Git history so run-changed script can diff properly.
24+ fetch-depth : 0
25+ - name : Set up Node (14)
26+ uses : actions/setup-node@v2
27+ with :
28+ node-version : 14.x
29+ - name : Bump Node memory limit
30+ run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
31+ - name : Test setup and yarn install
32+ run : |
33+ cp config/ci.config.json config/project.json
34+ yarn
35+ - name : build
36+ run : yarn build:changed auth
37+ - name : Run tests on changed packages
38+ run : xvfb-run yarn test:changed auth
39+ test-firefox :
40+ name : Test Auth on Firefox If Changed
41+ runs-on : ubuntu-latest
42+
43+ steps :
44+ - name : install Firefox stable
45+ run : |
46+ sudo apt-get update
47+ sudo apt-get install firefox
48+ - name : Checkout Repo
49+ uses : actions/checkout@master
50+ with :
51+ # This makes Actions fetch all Git history so run-changed script can diff properly.
52+ fetch-depth : 0
53+ - name : Set up Node (14)
54+ uses : actions/setup-node@v2
55+ with :
56+ node-version : 14.x
57+ - name : Bump Node memory limit
58+ run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
59+ - name : Test setup and yarn install
60+ run : |
61+ cp config/ci.config.json config/project.json
62+ yarn
63+ - name : build
64+ run : yarn build:changed auth
65+ - name : Run tests on auth changed packages
66+ run : xvfb-run yarn --cwd packages/auth test:browser:unit
67+ env :
68+ BROWSERS : ' Firefox'
69+ - name : Run tests on auth-compat changed packages
70+ run : xvfb-run yarn --cwd packages/auth-compat test:browser:unit
71+ env :
72+ BROWSERS : ' Firefox'
0 commit comments