Skip to content

[Coordinate-picker-rework 4] Addition of a new coordinate picker #477

[Coordinate-picker-rework 4] Addition of a new coordinate picker

[Coordinate-picker-rework 4] Addition of a new coordinate picker #477

name: Webclient CI/CD
on:
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
push:
branches: [main]
workflow_dispatch:
jobs:
webclient-ui-test:
strategy:
matrix:
browser:
- chrome
- firefox
runs-on: ubuntu-latest
container:
image: cypress/browsers:node16.16.0-chrome107-ff107
options: --user 1001
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-node@v3
with:
cache: 'npm'
cache-dependency-path: 'webclient/package-lock.json'
- name: Cypress run
uses: cypress-io/github-action@v5
with:
start: npm run dev
wait-on: "http://localhost:8000"
browser: ${{ matrix.browser }}
working-directory: webclient
webclient-linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-node@v3
with:
cache: 'npm'
cache-dependency-path: 'webclient/package.json'
- run: npm install --prefix webclient
- run: npm run lint --prefix webclient
#- run: npm run type-check --prefix webclient
webclient-build:
uses: ./.github/workflows/_docker-build.yml
needs:
- webclient-linting
- webclient-ui-test
with:
image_suffix: webclient
context: ./webclient
dockerfile: Dockerfile
permissions:
contents: read
packages: write
webclient-deployment:
uses: ./.github/workflows/_restart-argocd.yml
needs:
- webclient-build
with:
deployment: webclient
secrets:
ARGOCD_TOKEN: ${{ secrets.ARGOCD_TOKEN }}