Commit 372f5686 authored by Grant's avatar Grant
Browse files

Chore: yarnify & upgrading packages

parent 9918dbcf
Loading
Loading
Loading
Loading
Loading

.eslintrc.json

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
{
  "root": true,
  "ignorePatterns": ["node_modules", "packages/**/dist"],
  "plugins": ["simple-import-sort"],
  "rules": {
    "simple-import-sort/imports": "error",
    "simple-import-sort/exports": "error"
  }
}
+10 −1
Original line number Diff line number Diff line
@@ -22,3 +22,12 @@ node_modules/
/.env
.env.local
dist

# yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
 No newline at end of file
+23 −22
Original line number Diff line number Diff line
@@ -7,35 +7,33 @@ stages:
include:
  - component: sc07.dev/sc07/ci/wiki@main
    inputs:
      wiki_token: $CI_TOKEN
      wiki_token: $CI_JOB_TOKEN

eslint client:
eslint:
  stage: lint
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      changes:
        - packages/client/src/**/*
  image: node:23-alpine
  image: node:24-alpine
  before_script:
    - corepack enable yarn && corepack prepare --activate
  script:
    - npm i --include=dev
    - npm -w packages/client run lint
    - yarn workspaces focus --all
    - yarn run lint:ci
  artifacts:
    reports:
      codequality: packages/client/gl-codequality.json
      codequality: gl-codequality.json

eslint server:
  stage: lint
check outdated:
  stage: test
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      changes:
        - packages/server/src/**/*
  image: node:23-alpine
  image: node:24-alpine
  allow_failure: true
  before_script:
    - corepack enable yarn && corepack prepare --activate
    - yarn workspaces focus --all
  script:
    - npm i --include=dev
    - npm -w packages/server run lint
  artifacts:
    reports:
      codequality: packages/server/gl-codequality.json
    - npm outdated

jest server:
  stage: test
@@ -43,7 +41,7 @@ jest server:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      changes:
        - packages/server/src/**/*
  image: node:23-alpine
  image: node:24-alpine
  services:
    - name: postgres:14-alpine
      alias: postgres
@@ -54,11 +52,14 @@ jest server:
        POSTGRES_HOST_AUTH_METHOD: trust
  variables:
    DATABASE_URL: postgres://canvas@postgres/canvas
  before_script:
    - corepack enable yarn && corepack prepare --activate
  script:
    - apk update && apk add git
    - npm i --include=dev
    - npx -w packages/server prisma migrate reset --force
    - npm -w packages/server run test:ci
    - yarn workspaces focus --all
    - yarn workspace @sc07-canvas/server prisma migrate reset --force
    - yarn workspace @sc07-canvas/server prisma generate
    - yarn workspace @sc07-canvas/server run test:ci
  coverage: /All\sfiles.*?\s+([\d\.]+)/
  artifacts:
    reports:
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ publish:
    - red
  interruptible: true
  before_script:
    - echo $PAT | docker login $REGISTRY -u $GITLAB_USER_LOGIN --password-stdin
    - echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
  script:
    - |
      docker build --tag $REGISTRY/$IMAGE_NAME \
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ build-wiki:
    - git config user.email "ci@sc07.company"
    - git config user.name "ci"
    - git remote remove gitlab-wiki || true
    - git remote add gitlab-wiki "https://ci:$CI_TOKEN@sc07.dev/sc07/canvas.wiki.git"
    - git remote add gitlab-wiki "https://ci:$CI_JOB_TOKEN@sc07.dev/sc07/canvas.wiki.git"
    - git status
    - git checkout main
    - git pull --rebase
Loading