Skip to content

build(deps): bump the visx group across 2 directories with 23 updates #4040

build(deps): bump the visx group across 2 directories with 23 updates

build(deps): bump the visx group across 2 directories with 23 updates #4040

name: Web - Pull Request
on:
pull_request:
branches:
- daily
- release/alpha
- master
paths:
- ".github/workflows/**"
- "packages/**"
- "services/web/**"
env:
WEB_IMAGE_NAME: liexp-web
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
with:
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
lint:
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
with:
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: ./.github/actions/build-packages
with:
hash: ${{ github.sha }}
- name: Lint code
run: pnpm web lint
build:
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
with:
hash: ${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: ./.github/actions/build-packages
with:
hash: ${{ github.sha }}
- uses: actions/cache@v4
with:
path: |
services/**/build
key: web-build
- name: Type Check Web
run: pnpm web build
- name: Build Web App
run: pnpm web build:app-server
docker-build:
if: ${{ github.head_ref == 'release/alpha' }}
runs-on: [ubuntu-latest]
needs: [build]
steps:
- uses: actions/checkout@v4
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build WEB image
uses: docker/build-push-action@v5
with:
context: .
file: ./web.Dockerfile
push: false
tags: ${{ env.WEB_IMAGE_NAME }}