Skip to content

chore: lint ui

chore: lint ui #8

Workflow file for this run

name: CI UI
on:
push:
paths:
- .github/**
- ui/**
jobs:
build:
if: false # DEBUG
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- name: Install dependencies
run: yarn --cwd ui install --frozen-lockfile --prefer-offline
- name: Run lint
run: yarn --cwd ui lint
- name: Run tests
run: yarn --cwd ui test:ci
env:
MONGOMS_PREFER_GLOBAL_PATH: false
- name: Compile
run: yarn --cwd ui build
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ghcr.io/mission-apprentissage/tdb-ui
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: ui
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}