File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,16 +33,20 @@ jobs:
3333 env :
3434 NODE_VERSION : ${{ matrix.node_version }}
3535 steps :
36+ - name : Install docker-compose
37+ run : |
38+ sudo apt-get update
39+ sudo apt-get install -y docker-compose
3640 - uses : actions/checkout@v3
3741 with :
3842 # Fetch all history for all tags and branches
3943 fetch-depth : 0
4044 - name : Build the stack
41- run : docker-compose up -d
45+ run : docker-compose -f docker-compose.yml up -d
4246 - name : Build testing container
4347 run : docker build -t tests:${{ github.sha }} --build-arg SET_NODE_VERSION=$NODE_VERSION .
4448 - name : Invoke testing container
45- run : docker run --network container: vault
49+ run : docker run --network vault-network
4650 -e VAULT_ADDR=$VAULT_ADDR
4751 -v $PWD/coverage:/app/coverage tests:${{ github.sha }} "cd /app && npm run coverage"
4852 env :
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ services:
1313 - " 8200:8200"
1414 depends_on :
1515 - postgres
16+ networks :
17+ - vault-network
1618
1719 postgres :
1820 image : postgres:15.3
@@ -21,3 +23,10 @@ services:
2123 environment :
2224 POSTGRES_USER : root
2325 POSTGRES_PASSWORD : test
26+ networks :
27+ - vault-network
28+
29+ networks :
30+ vault-network :
31+ name : vault-network
32+ driver : bridge
You can’t perform that action at this time.
0 commit comments