-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (41 loc) · 1.13 KB
/
stage.yaml
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
name: stage
run-name: Staging Deployment
on:
pull_request:
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: ./bin/make -j $(nproc) test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./bin/make -j $(nproc) lint
check-uptodate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./bin/make -j $(nproc) check-uptodate
env:
TERM: vt100
deploy:
runs-on: ubuntu-latest
environment: stage
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: ./bin/make -j $(nproc) docker-pull deploy ENV=stage CHANNEL= # empty channel becomes PR-NUM or "live"
env:
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_EVY_LANG }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./bin/make -j $(nproc) e2e USE_DOCKER=1
env:
BASEURL: ${{ env.BASEURL_APEX }}
BASEURL_PLAY: ${{ env.BASEURL_PLAY }}
BASEURL_DOCS: ${{ env.BASEURL_DOCS }}