File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Project Config
2
+
3
+ on : pull_request
4
+
5
+ # Detects if any project config files (rules or functions) have changed,
6
+ # and deploys them to the test project used for CI if so.
7
+ # Run this in its own workflow instead of as a step before each test
8
+ # workflow to avoid too many deploys, possibly causing race conditions.
9
+ # Since the build step of each test workflow takes a long time, this
10
+ # this should finish before the tests begin running.
11
+
12
+ jobs :
13
+ test :
14
+ name : Deploy Firebase Project Rules and Functions
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Checkout Repo
19
+ uses : actions/checkout@master
20
+ with :
21
+ # This makes Actions fetch all Git history so run-changed script can diff properly.
22
+ fetch-depth : 0
23
+ - name : Set up Node (14)
24
+ uses : actions/setup-node@v2
25
+ with :
26
+ node-version : 14.x
27
+ - name : Yarn install
28
+ run : yarn
29
+ - name : Deploy project config if needed
30
+ run : yarn ts-node scripts/ci-test/deploy-if-needed.ts
31
+ env :
32
+ FIREBASE_CLI_TOKEN : ${{secrets.FIREBASE_CLI_TOKEN}}
Original file line number Diff line number Diff line change 23
23
sudo apt-get install google-chrome-stable
24
24
- name : Bump Node memory limit
25
25
run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
26
+ - name : Deploy project config if needed
27
+ run : yarn ts-node scripts/ci-test/deploy-if-needed.ts
28
+ env :
29
+ FIREBASE_CLI_TOKEN : ${{secrets.FIREBASE_CLI_TOKEN}}
26
30
- name : Test setup and yarn install
27
31
run : |
28
32
cp config/ci.config.json config/project.json
Original file line number Diff line number Diff line change 23
23
sudo apt-get install google-chrome-stable
24
24
- name : Bump Node memory limit
25
25
run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
26
+ - name : Deploy project config if needed
27
+ run : yarn ts-node scripts/ci-test/deploy-if-needed.ts
28
+ env :
29
+ FIREBASE_CLI_TOKEN : ${{secrets.FIREBASE_CLI_TOKEN}}
26
30
- name : Test setup and yarn install
27
31
run : |
28
32
cp config/ci.config.json config/project.json
Original file line number Diff line number Diff line change 55
55
sudo apt-get install firefox
56
56
- name : Bump Node memory limit
57
57
run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
58
+ - name : Deploy project config if needed
59
+ run : yarn ts-node scripts/ci-test/deploy-if-needed.ts
60
+ env :
61
+ FIREBASE_CLI_TOKEN : ${{secrets.FIREBASE_CLI_TOKEN}}
58
62
- name : Test setup and yarn install
59
63
run : |
60
64
cp config/ci.config.json config/project.json
You can’t perform that action at this time.
0 commit comments