-
Notifications
You must be signed in to change notification settings - Fork 167
34 lines (31 loc) · 891 Bytes
/
ci.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
name: Test and Build
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
- name: Generates Secrets File
run: |
echo "export default { PROJECT_ID_MAINNET: '${{ secrets.PROJECT_ID_MAINNET }}', PROJECT_ID_PREVIEW: '${{ secrets.PROJECT_ID_PREVIEW }}', PROJECT_ID_PREPROD: '${{ secrets.PROJECT_ID_PREPROD }}', SENTRY_DSN: '${{ secrets.SENTRY_DSN }}'};" > secrets.production.js
- name: Build
run: npm run build
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: build
path: build