generated from scaffold-eth/scaffold-eth
-
Notifications
You must be signed in to change notification settings - Fork 693
/
.gitpod.yml
59 lines (59 loc) · 1.87 KB
/
.gitpod.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
tasks:
- name: App
init: |
# bring in secret access tokens from gitpod user dashboard
eval $(gp env -e)
# OlmypusDAO front end contributors with access permissions to the main repo
# should set GITHUB_OHM_PERSONAL_ACCESS_TOKEN in their gitpod UI Settings panel
if [ -z ${GITHUB_OHM_PERSONAL_ACCESS_TOKEN+x} ];
then
echo "var is unset";
else
echo "Setting git origin push URL for OlympusDAO/olympus-frontend";
git remote set-url --push origin https://${GITHUB_OHM_PERSONAL_ACCESS_TOKEN}@github.com/OlympusDAO/olympus-frontend.git;
fi
# create a default .env file if none present
if [ ! -f .env ]; then cp ".env.example" ".env"; fi
# Config submodules
git submodule init
git submodule update
# Install dependencies
yarn && \
gp sync-done install
command: VITE_PROVIDER=$(gp url 8545) yarn start --host
- name: Test
init: gp sync-await install
command: |
yarn test --clearCache
yarn test:unit
openMode: split-right
- name: Shell
# The ~/.ssh directory will be removed between workspace runs
# We store it on /workspace/ instead and link it
# We also ensure that ssh-agent is added
# Your own keys will need to be added through ssh-add or ~/.ssh/config
before: |
echo "Setting up SSH environment"
rm -rf ~/.ssh
mkdir -p /workspace/.ssh
ln -sf /workspace/.ssh ~/.ssh
command: eval $(ssh-agent -s)
openMode: tab-after
ports:
- port: 3000
onOpen: open-preview
- port: 8545
onOpen: ignore
github:
prebuilds:
pullRequestsFromForks: true
addComment: true
vscode:
extensions:
- dbaeumer.vscode-eslint
- esbenp.prettier-vscode
- mhutchie.git-graph
- bmuskalla.vscode-tldr
- eamodio.gitlens
- alexeynobody.javascript-test-runner-reloaded
- naumovs.color-highlight