forked from AztecProtocol/aztec-connect-bridges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
104 lines (103 loc) · 2.96 KB
/
config.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "2.1"
orbs:
node: circleci/[email protected]
jobs:
build-and-test:
docker:
- image: "cimg/base:stable-20.04"
steps:
- checkout
- node/install:
install-yarn: true
node-version: "16.13"
- run:
name: Setup Foundry
shell: /bin/bash
command: |
yarn config set script-shell /bin/bash
yarn
yarn install:foundry
export PATH=/home/circleci/.foundry/bin:$PATH
export PATH=/home/circleci/.forge/bin:$PATH
yarn setup:foundry
yarn compile:typechain
- run:
name: Check Formatting
shell: /bin/bash
command: |
yarn config set script-shell /bin/bash
yarn formatting:check
- run:
name: Check Linting Errors in Contracts
shell: /bin/bash
command: |
yarn config set script-shell /bin/bash
yarn lint:contracts
- run:
name: Check Linting Errors in Clients
shell: /bin/bash
command: |
yarn config set script-shell /bin/bash
yarn lint:clients
- run:
name: Test Contracts
shell: /bin/bash
command: |
yarn config set script-shell /bin/bash
export PATH=/home/circleci/.foundry/bin:$PATH
export PATH=/home/circleci/.forge/bin:$PATH
yarn test:contracts
- run:
name: Test Clients
shell: /bin/bash
command: |
yarn config set script-shell /bin/bash
export PATH=/home/circleci/.foundry/bin:$PATH
export PATH=/home/circleci/.forge/bin:$PATH
yarn test:clients
- run:
name: Build
shell: /bin/bash
command: |
yarn config set script-shell /bin/bash
export PATH=/home/circleci/.foundry/bin:$PATH
export PATH=/home/circleci/.forge/bin:$PATH
yarn build
publish:
docker:
- image: "cimg/base:stable-20.04"
steps:
- checkout
- node/install:
install-yarn: true
node-version: "16.13"
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- run:
name: Setup Foundry
shell: /bin/bash
command: |
yarn config set script-shell /bin/bash
yarn
yarn install:foundry
export PATH=/home/circleci/.foundry/bin:$PATH
export PATH=/home/circleci/.forge/bin:$PATH
yarn setup:foundry
yarn compile:typechain
yarn test:contracts
yarn test:client
yarn build
yarn publish --access public
workflows:
install:
jobs:
- build-and-test
deploy:
jobs:
- publish:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/