[Snyk] Security upgrade apollo-server from 2.25.2 to 3.13.0 #583
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: Services helath | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
endpoint-health: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [ 16.9.0 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Fire up docker services | |
run: | | |
docker-compose up -d front backoffice backoffice_backend storage monthly | |
- name: Install packages | |
run: | | |
cd services-health-checker | |
npm i | |
- name: Run tests | |
run: | | |
cd services-health-checker | |
# Sleeping three minutes so the container would done to build. | |
sleep 180 | |
npm run test | |
# services-sanity: | |
# runs-on: ubuntu-20.04 | |
## | |
## needs: | |
## - endpoint-health | |
# | |
# strategy: | |
# matrix: | |
# node-version: [ 16.9.0 ] | |
# | |
# steps: | |
# # todo: run only when the commit have run-e2e-sanity | |
# - uses: actions/checkout@v2 | |
# - name: Use Node.js ${{ matrix.node-version }} | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
# | |
# - name: Install testim | |
# env: | |
# TESTIM_TOKEN: ${{ secrets.TESTIM_TOKEN }} | |
# TESTIM_PROJECT: ${{ secrets.TESTIM_PROJECT }} | |
# run: | | |
# npm i -g @testim/testim-cli | |
# testim --token $TESTIM_TOKEN --project $TESTIM_PROJECT --grid "Testim-Grid" --suite "Sanity" | |
# | |
# | |
# - name: Fire up docker services | |
# run: | | |
# docker-compose up -d front backoffice backoffice_backend storage monthly | |
# | |
# - name: Prepare env stuff | |
# run: | | |
# # Sleeping three minutes so the container would done to build. | |
# sleep 180 | |
# | |
# # todo: create here a user and run the sanity tests of login and verify the front works | |
# curl http://localhost:1000 | |
# | |
# docker-compose exec -T backoffice_backend npm run cli:createUser -- --username=admin -- [email protected] -- --password=admin | |
## - name: Install testim | |
## run: | | |
## npm i -g @testim/testim-cli | |
## testim --token ${{ secrets.TESTIM_TOKEN }} --project ${{secrets.TESTIM_PROJECT}} --grid "Testim-Grid" --suite "Sanity" |