@@ -34,10 +34,10 @@ jobs:
3434 - name : Start docker compose services
3535 run : docker compose up -d && sleep 5
3636
37- - name : Show docker compose logs
37+ - name : Show docker compose logs after creating services
3838 run : docker compose logs --no-color --timestamps || true
3939
40- - name : Run setup
40+ - name : Run setup databases in the couchdb inside the container
4141 run : npm run setup
4242 env :
4343 SOURCE_URL : ${{ secrets.SOURCE_URL }}
@@ -49,31 +49,20 @@ jobs:
4949 SOURCE_URL : ${{ secrets.SOURCE_URL }}
5050 DEBUG : ' none'
5151
52- - name : Show docker compose logs
52+ - name : Show docker compose logs after running tests
5353 if : success() || failure()
5454 run : docker compose logs --no-color --timestamps | grep -v "couchdb" || true
5555
56- integration-tests :
57- runs-on : ubuntu-latest
58- needs : [deploy]
59- steps :
60- - uses : actions/checkout@v6
61- - name : Use Node.js ${{ matrix.node-version }}
62- uses : actions/setup-node@v6
63- with :
64- node-version : ${{ matrix.node-version }}
65- cache : ' npm'
66- - run : npm ci
6756 - name : Create local config for tests to use the couchdb outside the container
6857 run : |
6958 echo 'module.exports = { usersDbConnection: { url: "http://localhost:5984" }};' > config/localhost.js
70- - name : Run Integration tests
71- run : DEBUG=replay* npm run coverage || echo 'Test run failed replay no longer is working with latest nano which uses node fetch'
72- - name : Run integration tests using the app with local couchdb
59+
60+ - name : Run integration tests using the app against the couchdb in the contianer
7361 run : npm run test:deprecated:coverage
7462 env :
7563 SOURCE_URL : ${{ secrets.SOURCE_URL }}
7664 DEBUG : ' test:deprecated'
65+
7766 - name : Upload coverage report
7867 uses : actions/upload-artifact@v5
7968 if : success() || failure()
8776 with :
8877 github-token : ${{ secrets.GITHUB_TOKEN }}
8978
79+ integration-tests :
80+ runs-on : ubuntu-latest
81+ needs : [deploy]
82+ steps :
83+ - uses : actions/checkout@v6
84+ - name : Use Node.js ${{ matrix.node-version }}
85+ uses : actions/setup-node@v6
86+ with :
87+ node-version : ${{ matrix.node-version }}
88+ cache : ' npm'
89+ - run : npm ci
90+ - name : Run Integration tests
91+ run : DEBUG=replay* npm run coverage || echo 'Test run failed replay no longer is working with latest nano which uses node fetch'
92+
9093 ui-tests :
9194 runs-on : ubuntu-latest
9295 needs : [deploy]
0 commit comments