forked from l2beat/l2beat
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.77 KB
/
smoke-test-mq.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Smoke Test (MQ)
on:
merge_group:
jobs:
config-smoke-test:
name: Config smoke test
runs-on: ubuntu-latest
env:
HEROKU_ORGANIZATION: ${{ vars.HEROKU_ORG }}
HEROKU_API_KEY: ${{ secrets.HEROKU_TOKEN }}
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
working-directory: packages/backend
- name: Build packages
run: pnpm build:dependencies
working-directory: packages/backend
- name: Install Heroku CLI
run: curl https://cli-assets.heroku.com/install.sh | sh
- name: Pull staging configuration
run: heroku config -a l2beat-staging --shell > .env
working-directory: packages/backend
# PORT variable is not present inside the dump and is assigned by Heroku at deployment time
- name: Fill PORT variable
run: echo "PORT=3000" >> .env
working-directory: packages/backend
- name: Run staging smoke test
run: pnpm test:config
working-directory: packages/backend
- name: Pull production configuration
run: heroku config -a l2beat-production --shell > .env
working-directory: packages/backend
# PORT variable is not present inside the dump and is assigned by Heroku at deployment time
- name: Fill PORT variable
run: echo "PORT=3000" >> .env
working-directory: packages/backend
- name: Run production smoke test
run: pnpm test:config
working-directory: packages/backend