-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.yml
More file actions
89 lines (87 loc) · 2.19 KB
/
Copy pathconfig.yml
File metadata and controls
89 lines (87 loc) · 2.19 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: 2.1
workflows:
test:
jobs:
- lint
- test-backend
# - deploy:
# context: cloudflare
# filters:
# branches:
# only:
# - main
# Just for reusing below
step_defs:
- run: &node_version
name: Set Node version
command: |
nvm install v18
nvm alias default v18
echo "nvm use default" >> $BASH_ENV
- run: &check_version
name: Check Node version
command: node -v | grep v18
jobs:
test-backend:
resource_class: large
machine:
image: ubuntu-2204:2022.04.1
steps:
- checkout
- run: *node_version
- run: *check_version
- run:
name: Install Packages
command: yarn
- run:
name: Download Circuits
command: |
cd packages/backend
wget https://pub-6c705682d0d84704aeda74c87d3880ec.r2.dev/circuits.tar.gz
tar -xzf circuits.tar.gz
rm circuits.tar.gz
- run:
name: Test
command: cd packages/backend && yarn test
lint:
resource_class: medium
machine:
image: ubuntu-2204:2022.04.1
steps:
- checkout
- run: *node_version
- run: *check_version
- run:
name: Install Packages
command: yarn
- run:
name: Lint
command: yarn lint --check
deploy:
resource_class: large
machine:
image: ubuntu-2204:2022.04.1
steps:
- checkout
- run: *node_version
- run: *check_version
- run:
name: Install
command: yarn
- run:
name: Build backend image
command: docker build . -t jchancehud/trusted-setup:latest
# - run:
# name: Push relay image
# command: |
# echo $DOCKER_TOKEN | docker login -u jchancehud --password-stdin
# docker push jchancehud/zketh:latest
# rm /home/circleci/.docker/config.json
- run:
name: Build frontend
command: yarn frontend build --mode production
- run:
name: Publish frontend
command: |
cd packages/frontend
npx wrangler@2.1 publish