Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /documentation #303
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
'on': | |
push: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
graphql: | |
name: 'graphql tests - Node.js v${{ matrix.node }}' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 16 | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ matrix.node }}' | |
- uses: actions/checkout@v3 | |
- name: 'Cache node_modules' | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-v${{ matrix.node }}- | |
- name: Setup Docker | |
run: ./start.sh dev | |
- name: Install Dependencies | |
run: npm install | |
working-directory: configuration-api | |
- name: populate DB | |
run: node main/mongo/populateDB.js | |
working-directory: configuration-api | |
- name: Run configuration api tests | |
run: node main/advancedAuth.js & npm test | |
working-directory: configuration-api | |
- name: stop Docker | |
run: ./stop.sh dev | |
cypress: | |
name: 'cypress tests - Node.js v${{ matrix.node }}' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 16 | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ matrix.node }}' | |
- uses: actions/checkout@v3 | |
- name: 'Cache node_modules' | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-v${{ matrix.node }}- | |
- name: Add hosts to /etc/hosts | |
run: | | |
sudo echo "127.0.0.1 keycloak" | sudo tee -a /etc/hosts | |
- name: set-up environment | |
run: cp .env.docker .env | |
- name: Setup Docker | |
run: ./start.sh silent | |
- name: Install Dependencies | |
run: npm install | |
- name: Run cypress tests | |
run: npm run cypress:test | |
- name: stop Docker | |
run: ./stop.sh |