-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.47 KB
/
build-express.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
name: build-express
on:
pull_request:
paths:
- 'packages/express/**'
- '.github/workflows/build-express.yml'
jobs:
build-express-app:
runs-on: ubuntu-latest # todo: use whatever is on the DO droplet
steps:
- run: echo "🎉 The job was triggered by a ${{ github.event_name }} on commit ${{ github.SHA }}"
- name: Check out repository code
uses: actions/checkout@v2
- name: Start CouchDB
uses: iamssen/couchdb-github-action@master
with:
couchdb-version: 2.3.1 # production version
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install -g [email protected]
- run: npm install -g [email protected] # 4.0.0 ?
#- run: npm install -g [email protected]
- run: lerna bootstrap
- name: Build and Test
run: |
echo COUCHDB_SERVER=localhost:5984 >> ./packages/express/.env.development.local
echo COUCHDB_PROTOCOL=http >> ./packages/express/.env.development.local
echo COUCHDB_ADMIN=admin >> ./packages/express/.env.development.local
echo COUCHDB_PASSWORD=password >> ./packages/express/.env.development.local
echo VERSION=${{ github.SHA }} >> ./packages/express/.env.development.local
cd ./packages/express
yarn remove @types/jest
yarn remove @types/pouchdb
yarn build
# nohup yarn serve & # Run the server in the background
# sleep 15s
yarn test