From 6f4a23085e15c604de415883e2d856efd5d28c3f Mon Sep 17 00:00:00 2001 From: steel <mael.acier@ensiie.fr> Date: Sun, 5 May 2024 20:49:42 +0200 Subject: [PATCH] change ci --- .gitlab-ci.yml | 38 ++++++++------------------------------ src/auth.ts | 1 + src/index.test.ts | 7 ------- 3 files changed, 9 insertions(+), 37 deletions(-) delete mode 100644 src/index.test.ts diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e72dc8d..b66e233 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,45 +1,23 @@ +include: + - project: "arise/ci-cd" + file: "node/pnpm/build.gitlab-ci.yml" + - project: "arise/ci-cd" + file: "node/pnpm/lint.gitlab-ci.yml" + - project: "arise/ci-cd" + file: "node/pnpm/check.gitlab-ci.yml" + stages: - build - test - deploy -# This folder is cached between builds -# https://docs.gitlab.com/ee/ci/yaml/index.html#cache -cache: - paths: - - node_modules/ - -.pnpm: - image: node:20 - before_script: - - corepack enable - - pnpm install - # Check for dependencies issues - - pnpm install --resolution-only --no-frozen-lockfile - build: - stage: build - extends: .pnpm - script: - - pnpm package artifacts: untracked: false when: on_success paths: - dist/* -lint: - stage: test - extends: .pnpm - script: - - pnpm lint - -check: - stage: test - extends: .pnpm - script: - - pnpm check - publish-npm: stage: deploy extends: .pnpm diff --git a/src/auth.ts b/src/auth.ts index 39f9c12..ea8968a 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -7,4 +7,5 @@ export const aidc = await AriseIdConnect.init({ client_secret: env.AIDC_CLIENT_SECRET, scope: "openid offline profile", wrapper: defaultLucia, + // issuer: "http://localhost:4444/.well-known/openid-configuration" }); diff --git a/src/index.test.ts b/src/index.test.ts deleted file mode 100644 index dadc7e4..0000000 --- a/src/index.test.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { describe, it, expect } from "vitest"; - -describe("sum test", () => { - it("adds 1 + 2 to equal 3", () => { - expect(1 + 2).toBe(3); - }); -}); -- GitLab