[Snyk] Upgrade json-server from 0.16.3 to 0.17.4 #106
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: Dev Tools HW | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
# Install dependencies and runs tests | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm ci | |
- name: Run test | |
run: npm run test | |
# docker-build-image-synk-scan: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# # Build docker image | |
# - name: Set up QEMU | |
# uses: docker/setup-qemu-action@v1 | |
# - name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v1 | |
# - name: Docker image | |
# run: docker build -t amongustodo/test . | |
# #Snyk security scan on docker image | |
# - name: Snyk scan on Docker image | |
# uses: snyk/actions/docker@master | |
# env: | |
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
# with: | |
# image: amongustodo/test | |
# docker-push: | |
# needs: [run-tests, docker-build-image-synk-scan] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Docker Hub Login | |
# # Dockerhub login | |
# uses: docker/login-action@v1 | |
# with: | |
# username: ${{ secrets.DOCKERHUB_USERNAME }} | |
# password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# # Dockerhub push | |
# - name: Docker build and push | |
# id: docker_build | |
# uses: docker/build-push-action@v2 | |
# with: | |
# push: true | |
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/amongus-todo:latest | |
# deploy: | |
# needs: [run-tests, docker-build-image-synk-scan] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# # Deploy to Heroku | |
# - uses: akhileshns/heroku-deploy@v3.12.12 | |
# with: | |
# heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | |
# heroku_app_name: cw-amongus-todo #Must be unique in Heroku | |
# heroku_email: ${{ secrets.HEROKU_EMAIL }} | |
# usedocker: true | |