Skip to content

adding js to use butons for toggle between tables of routes,routes followed and routes version on user detail #75

adding js to use butons for toggle between tables of routes,routes followed and routes version on user detail

adding js to use butons for toggle between tables of routes,routes followed and routes version on user detail #75

Workflow file for this run

# This workflow will build a Node project with NPM and then push its Docker image to DockerHub
name: CI/CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
with:
node-version: '18.x'
- name: Test and build
run: |
docker run --env PROFILE=test -d -p 8080:8080 udlepssoftarch/myroutes-api
while ! nc -z localhost 8080; do sleep 10; done
docker ps -a
npm ci
npm run lint
npx start-server-and-test start http-get://localhost:4200 'cypress run --record --key ${{ secrets.CYPRESS_KEY }}'
npm run build -- --configuration production
- name: Login to DockerHub
if: success() && github.ref == 'refs/heads/main'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to Docker Hub
if: success() && github.ref == 'refs/heads/main'
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
udlepssoftarch/myroutes:${{ github.sha }}
udlepssoftarch/myroutes:latest