diff --git a/.github/workflows/config-values.yaml b/.github/workflows/config-values.yaml index e349d4ca9c26..883861366f8b 100644 --- a/.github/workflows/config-values.yaml +++ b/.github/workflows/config-values.yaml @@ -6,17 +6,12 @@ on: - 'main' - 'release/**' - 'pre-release/**' - - '!unicorn-pipe-rel3' - - '!feature/unicorn-app' paths: - 'charts/**' - 'infra/**' - '**/infra/**' workflow_dispatch: {} pull_request: - branches: - - '!uni-pr' - - '!feature/unicorn-app' paths: - 'charts/**' - 'infra/**' diff --git a/.github/workflows/external-checks.yml b/.github/workflows/external-checks.yml index 816915e60af3..5707795d4f9b 100644 --- a/.github/workflows/external-checks.yml +++ b/.github/workflows/external-checks.yml @@ -1,9 +1,7 @@ name: External checks on: - pull_request: - branches-ignore: - - 'feature/unicorn-app' + pull_request: {} workflow_dispatch: {} defaults: diff --git a/.github/workflows/merge-queue-ci.yml b/.github/workflows/merge-queue-ci.yml deleted file mode 100644 index 2e96f313443e..000000000000 --- a/.github/workflows/merge-queue-ci.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Validate code in the merge queue - -on: - merge_group: - -jobs: - validate-pr: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Display info - run: | - echo "Hallo Merge Queue" - pwd - tree -a -I '.git' - git status - - name: Run slow CI (emulated by a long sleep) - run: sleep 300 diff --git a/.github/workflows/pullrequest-close.yml b/.github/workflows/pullrequest-close.yml index 76e88bbcba19..5d3e066f3866 100644 --- a/.github/workflows/pullrequest-close.yml +++ b/.github/workflows/pullrequest-close.yml @@ -4,9 +4,6 @@ on: pull_request: types: - closed - branches-ignore: - - 'uni-pr' - - 'feature/unicorn-app' defaults: run: diff --git a/.github/workflows/pullrequest-lint.yml b/.github/workflows/pullrequest-lint.yml index 41e94022f624..f7b04171a1c8 100644 --- a/.github/workflows/pullrequest-lint.yml +++ b/.github/workflows/pullrequest-lint.yml @@ -6,9 +6,6 @@ on: - reopened - edited - synchronize - branches-ignore: - - 'uni-pr' - - 'feature/unicorn-app' defaults: run: diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index b0de5846c2a2..71eace37971b 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -1,10 +1,7 @@ name: Monorepo pipeline - pull request on: - pull_request: - branches-ignore: - - 'uni-pr' - - 'feature/unicorn-app' + pull_request: {} workflow_dispatch: {} defaults: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 526291f1f2fa..15225953329b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -6,8 +6,6 @@ on: - 'main' - 'release/**' - 'pre-release/**' - - '!uni-pr' - - '!feature/unicorn-app' paths-ignore: - '**/*.md' tags: @@ -15,9 +13,6 @@ on: workflow_dispatch: create: pull_request: - branches: - - '!uni-pr' - - '!feature/unicorn-app' types: - opened - synchronize diff --git a/.github/workflows/revert-pr.yaml b/.github/workflows/revert-pr.yaml index 5945712005b5..492ca4300e92 100644 --- a/.github/workflows/revert-pr.yaml +++ b/.github/workflows/revert-pr.yaml @@ -8,11 +8,7 @@ on: - completed branches: - main - - '!uni-pr' - - '!feature/unicorn-app' pull_request: - branches: - - '!uni-pr' types: - opened - synchronize diff --git a/.github/workflows/unicorns.yml b/.github/workflows/unicorns.yml deleted file mode 100644 index 2bf69e51d595..000000000000 --- a/.github/workflows/unicorns.yml +++ /dev/null @@ -1,106 +0,0 @@ -name: Unicorn CI/CD pipeline -on: - workflow_dispatch: - create: - pull_request: - types: - - opened - - synchronize - - labeled - - closed - pull_request_review: - types: [submitted] -concurrency: - # See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value - group: push-unicorn${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -defaults: - run: - shell: bash -jobs: - printJob: - name: Print event - runs-on: ubuntu-latest - steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: | - echo "$GITHUB_CONTEXT" - check-approved: - name: Is PR approved - runs-on: ubuntu-latest - outputs: - IS_APPROVED: ${{ steps.check-approved.outputs.result }} - steps: - - name: Check if PR is approved - id: check-approved - uses: actions/github-script@v7 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - if (!context || !context.payload || !context.payload.pull_request) { - return false; - } - var reviews = await github.rest.pulls.listReviews({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.issue.number - }); - - if(!reviews || !reviews.data == null) { - return false; - } - var declined = reviews.data.filter(review => review.state != 'APPROVED').length > 0; - var pending = context.payload.pull_request.requested_teams.length > 0 - console.log(!(declined && pending) ? 'Pr is approved' : 'Pr is not approved'); - return !(declined && pending); - - name: output - run: echo "IS_APPROVED=${{ steps.check-approved.outputs.result }}" >> $GITHUB_OUTPUT - - check-unicorn: - name: Is this a unicorn PR - needs: check-approved - if: ${{ needs.check-approved.outputs.IS_APPROVED }}" - runs-on: ec2-runners - container: - image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest - timeout-minutes: 10 - steps: - - run: echo "selected runner = ${{ runner.name }}" - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/setup-node@v4 - with: - node-version-file: 'package.json' - - - name: Setup yarn - run: corepack enable - - - name: Get cache - id: get-cache - uses: ./.github/actions/get-cache - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - enable-cache: 'node_modules,generated-files' - - - name: Check unicorn affected - id: unicorn-affected - env: - BaseRef: ${{ github.base_ref }} #The target branch e.g. main (feature/unicorn-app) - HeadRef: ${{ github.head_ref }} #The branch being merged e.g. (unicorn-pipe-rel3) - run: | - echo "Comparing nx affected for $HeadRef using origin/$BaseRef as base branch" - echo IS_UNICORN=$(node scripts/ci/unicorn-utils.mjs "{\"baseBranch\": \"origin/$BaseRef\", \"mergeBranch\": \"$HeadRef\" }") >> "$GITHUB_OUTPUT" - - name: Results - run: | - echo "Unicorn = ${{ steps.unicorn-affected.outputs.IS_UNICORN }}" - - - name: Find Latest Release Branch - run: | - node scripts/ci/get-last-release.mjs $(git branch -r) - - - run: "echo 'latest release: ${{ steps.get_latest_release.outputs.data }}'" diff --git a/.gitignore b/.gitignore index a31e5dd70833..46c71ffd1796 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,6 @@ TODO .env .env.* .envrc.private -nx-cloud.env .nvmrc .node-version # IDE - VSCode diff --git a/apps/unicorn-app/.eslintrc.json b/apps/unicorn-app/.eslintrc.json deleted file mode 100644 index b0b7131a6c3a..000000000000 --- a/apps/unicorn-app/.eslintrc.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "extends": ["plugin:@nx/react", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "rules": { - "@nx/enforce-module-boundaries": [ - "error", - { - "enforceBuildableLibDependency": true, - "allowCircularSelfDependency": true, - "allow": ["../../../infra/src/dsl"], - "depConstraints": [ - { - "sourceTag": "*", - "onlyDependOnLibsWithTags": ["*"] - } - ] - } - ], - "simple-import-sort/imports": [ - "warn", - { - "groups": [ - // React related packages come first, followed by all external imports. - ["^react", "^\\w", "^@(?!island).+"], - // Then island.is packages. - ["^(@island.is).*"], - // Then all other imports in this order: "../", "./", "./css" - [ - "^\\.\\.(?!/?$)", - "^\\.\\./?$", - "^\\./(?=.*/)(?!/?$)", - "^\\.(?!/?$)", - "^\\./?$", - "^.+\\.?(css)$" - ] - ] - } - ] - }, - "plugins": ["simple-import-sort"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/apps/unicorn-app/codegen.yml b/apps/unicorn-app/codegen.yml deleted file mode 100644 index bcc1fe6a884d..000000000000 --- a/apps/unicorn-app/codegen.yml +++ /dev/null @@ -1,24 +0,0 @@ -schema: - - apps/api/src/api.graphql -documents: apps/unicorn-app/src/queries/*.{ts,tsx} -generates: - apps/web/graphql/schema.ts: - plugins: - - typescript - - typescript-operations - config: - exportFragmentSpreadSubTypes: true - scalars: - DateTime: Date - JSON: '{ [key: string]: any }' - namingConvention: - typeNames: change-case#pascalCase - apps/web/graphql/fragmentTypes.json: - plugins: - - fragment-matcher - config: - module: commonjs - apolloClientVersion: 3 -hooks: - afterAllFileWrite: - - prettier --write diff --git a/apps/unicorn-app/index.d.ts b/apps/unicorn-app/index.d.ts deleted file mode 100644 index a9ab53489c7f..000000000000 --- a/apps/unicorn-app/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ -declare module '*.svg' { - const content: any - export const ReactComponent: any - export default content -} diff --git a/apps/unicorn-app/infra/infra.ts b/apps/unicorn-app/infra/infra.ts deleted file mode 100644 index 47fdfe93c611..000000000000 --- a/apps/unicorn-app/infra/infra.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { service, ServiceBuilder } from '../../../infra/src/dsl/dsl' -const serviceName = 'unicorn-app' -export const serviceSetup = (): ServiceBuilder => - service(serviceName) - .image(serviceName) - .namespace(serviceName) - .serviceAccount(serviceName) - .ingress({ - primary: { - host: { - dev: serviceName, - staging: serviceName, - prod: serviceName, - }, - paths: ['/'], - }, - }) - .replicaCount({ - default: 1, - min: 1, - max: 10, - }) - .resources({ - limits: { - cpu: '200m', - memory: '256Mi', - }, - requests: { - cpu: '50m', - memory: '128Mi', - }, - }) - .liveness('/liveness') - .readiness('/readiness') diff --git a/apps/unicorn-app/jest.config.ts b/apps/unicorn-app/jest.config.ts deleted file mode 100644 index 5705a6bac0c1..000000000000 --- a/apps/unicorn-app/jest.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'unicorn-app', - preset: '../../jest.preset.js', - transform: { - '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest', - '^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/next/babel'] }], - }, - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: '../../coverage/apps/unicorn-app', -} diff --git a/apps/unicorn-app/next-env.d.ts b/apps/unicorn-app/next-env.d.ts deleted file mode 100644 index 4f11a03dc6cc..000000000000 --- a/apps/unicorn-app/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/apps/unicorn-app/next.config.js b/apps/unicorn-app/next.config.js deleted file mode 100644 index 5dd157afdc66..000000000000 --- a/apps/unicorn-app/next.config.js +++ /dev/null @@ -1,22 +0,0 @@ -//@ts-check - -// eslint-disable-next-line @typescript-eslint/no-var-requires -const { composePlugins, withNx } = require('@nx/next') - -/** - * @type {import('@nx/next/plugins/with-nx').WithNxOptions} - **/ -const nextConfig = { - nx: { - // Set this to true if you would like to use SVGR - // See: https://github.com/gregberge/svgr - svgr: false, - }, -} - -const plugins = [ - // Add more Next.js plugins to this list if needed. - withNx, -] - -module.exports = composePlugins(...plugins)(nextConfig) diff --git a/apps/unicorn-app/project.json b/apps/unicorn-app/project.json deleted file mode 100644 index c7b92fdd580a..000000000000 --- a/apps/unicorn-app/project.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "name": "unicorn-app", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/unicorn-app", - "projectType": "application", - "tags": ["scope:react-next"], - "targets": { - "build": { - "executor": "@nx/next:build", - "outputs": ["{options.outputPath}"], - "defaultConfiguration": "production", - "options": { - "outputPath": "dist/apps/unicorn-app" - }, - "configurations": { - "development": { - "outputPath": "apps/unicorn-app" - }, - "production": {} - }, - "dependsOn": ["build-custom-server"] - }, - "build-custom-server": { - "executor": "@nx/webpack:webpack", - "defaultConfiguration": "production", - "options": { - "outputPath": "dist/apps/unicorn-app", - "main": "apps/unicorn-app/server.ts", - "tsConfig": "apps/unicorn-app/tsconfig.server.json", - "maxWorkers": 2, - "assets": [], - "compiler": "tsc", - "target": "node", - "webpackConfig": "apps/unicorn-app/webpack.config.js" - }, - "configurations": { - "development": {}, - "production": { - "optimization": true, - "extractLicenses": true, - "inspect": false - } - } - }, - "serve": { - "executor": "@nx/next:server", - "defaultConfiguration": "development", - "options": { - "buildTarget": "unicorn-app:build", - "dev": true, - "customServerTarget": "unicorn-app:serve-custom-server" - }, - "configurations": { - "development": { - "buildTarget": "unicorn-app:build:development", - "dev": true, - "customServerTarget": "unicorn-app:serve-custom-server:development" - }, - "production": { - "buildTarget": "unicorn-app:build:production", - "dev": false, - "customServerTarget": "unicorn-app:serve-custom-server:production" - } - } - }, - "serve-custom-server": { - "executor": "@nx/js:node", - "defaultConfiguration": "development", - "options": { - "buildTarget": "unicorn-app:build-custom-server" - }, - "configurations": { - "development": { - "buildTarget": "unicorn-app:build-custom-server:development" - }, - "production": { - "buildTarget": "unicorn-app:build-custom-server:production" - } - } - }, - "export": { - "executor": "@nx/next:export", - "options": { - "buildTarget": "unicorn-app:build:production" - } - }, - "test": { - "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/apps/unicorn-app"], - "options": { - "jestConfig": "apps/unicorn-app/jest.config.ts" - } - }, - "lint": { - "executor": "@nx/eslint:lint" - }, - "docker-next": { - "executor": "Intentionally left blank, only so this target is valid when using `nx show projects --with-target docker-next`" - } - } -} diff --git a/apps/unicorn-app/public/.gitkeep b/apps/unicorn-app/public/.gitkeep deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/apps/unicorn-app/public/favicon.ico b/apps/unicorn-app/public/favicon.ico deleted file mode 100644 index 317ebcb2336e..000000000000 Binary files a/apps/unicorn-app/public/favicon.ico and /dev/null differ diff --git a/apps/unicorn-app/server.ts b/apps/unicorn-app/server.ts deleted file mode 100644 index 0333680a52a4..000000000000 --- a/apps/unicorn-app/server.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { bootstrap } from '@island.is/infra-next-server' - -bootstrap({ - name: 'unicorn-app', - appDir: 'apps/unicorn-app', -}) diff --git a/apps/unicorn-app/specs/index.spec.tsx b/apps/unicorn-app/specs/index.spec.tsx deleted file mode 100644 index 98ad31454a7c..000000000000 --- a/apps/unicorn-app/specs/index.spec.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react' -import { render } from '@testing-library/react' - -import Page from '../src/app/page' - -describe('Page', () => { - it('should render successfully', () => { - const { baseElement } = render() - expect(baseElement).toBeTruthy() - }) -}) diff --git a/apps/unicorn-app/src/app/api/hello/route.ts b/apps/unicorn-app/src/app/api/hello/route.ts deleted file mode 100644 index 4a0d8ceed763..000000000000 --- a/apps/unicorn-app/src/app/api/hello/route.ts +++ /dev/null @@ -1,3 +0,0 @@ -export async function GET(request: Request) { - return new Response('Hello, hello, from API!') -} diff --git a/apps/unicorn-app/src/app/global.css b/apps/unicorn-app/src/app/global.css deleted file mode 100644 index 2a8880df280a..000000000000 --- a/apps/unicorn-app/src/app/global.css +++ /dev/null @@ -1,409 +0,0 @@ -html { - -webkit-text-size-adjust: 100%; - font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, - Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, - Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; - line-height: 1.5; - tab-size: 4; - scroll-behavior: smooth; -} -body { - font-family: inherit; - line-height: inherit; - margin: 0; -} -h1, -h2, -p, -pre { - margin: 0; -} -*, -::before, -::after { - box-sizing: border-box; - border-width: 0; - border-style: solid; - border-color: currentColor; -} -h1, -h2 { - font-size: inherit; - font-weight: inherit; -} -a { - color: inherit; - text-decoration: inherit; -} -pre { - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, - Liberation Mono, Courier New, monospace; -} -svg { - display: block; - vertical-align: middle; - shape-rendering: auto; - text-rendering: optimizeLegibility; -} -pre { - background-color: rgba(55, 65, 81, 1); - border-radius: 0.25rem; - color: rgba(229, 231, 235, 1); - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, - Liberation Mono, Courier New, monospace; - overflow: scroll; - padding: 0.5rem 0.75rem; -} - -.shadow { - box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), - 0 4px 6px -2px rgba(0, 0, 0, 0.05); -} -.rounded { - border-radius: 1.5rem; -} -.wrapper { - width: 100%; -} -.container { - margin-left: auto; - margin-right: auto; - max-width: 768px; - padding-bottom: 3rem; - padding-left: 1rem; - padding-right: 1rem; - color: rgba(55, 65, 81, 1); - width: 100%; -} -#welcome { - margin-top: 2.5rem; -} -#welcome h1 { - font-size: 3rem; - font-weight: 500; - letter-spacing: -0.025em; - line-height: 1; -} -#welcome span { - display: block; - font-size: 3.875rem; - font-weight: 300; - line-height: 2.25rem; - margin-bottom: 0.5rem; -} -#hero { - align-items: center; - background-color: hsla(214, 62%, 21%, 1); - border: none; - box-sizing: border-box; - color: rgba(55, 65, 81, 1); - display: grid; - grid-template-columns: 1fr; - margin-top: 3.5rem; -} -#hero .text-container { - color: rgba(255, 255, 255, 1); - padding: 3rem 2rem; -} -#hero .text-container h2 { - font-size: 1.5rem; - line-height: 2rem; - position: relative; -} -#hero .text-container h2 svg { - color: hsla(162, 47%, 50%, 1); - height: 2rem; - left: -0.25rem; - position: absolute; - top: 0; - width: 2rem; -} -#hero .text-container h2 span { - margin-left: 2.5rem; -} -#hero .text-container a { - background-color: rgba(255, 255, 255, 1); - border-radius: 0.75rem; - color: rgba(55, 65, 81, 1); - display: inline-block; - margin-top: 1.5rem; - padding: 1rem 2rem; - text-decoration: inherit; -} -#hero .logo-container { - display: none; - justify-content: center; - padding-left: 2rem; - padding-right: 2rem; -} -#hero .logo-container svg { - color: rgba(255, 255, 255, 1); - width: 66.666667%; -} -#middle-content { - align-items: flex-start; - display: grid; - gap: 4rem; - grid-template-columns: 1fr; - margin-top: 3.5rem; -} -#learning-materials { - padding: 2.5rem 2rem; -} -#learning-materials h2 { - font-weight: 500; - font-size: 1.25rem; - letter-spacing: -0.025em; - line-height: 1.75rem; - padding-left: 1rem; - padding-right: 1rem; -} -.list-item-link { - align-items: center; - border-radius: 0.75rem; - display: flex; - margin-top: 1rem; - padding: 1rem; - transition-property: background-color, border-color, color, fill, stroke, - opacity, box-shadow, transform, filter, backdrop-filter, - -webkit-backdrop-filter; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; - width: 100%; -} -.list-item-link svg:first-child { - margin-right: 1rem; - height: 1.5rem; - transition-property: background-color, border-color, color, fill, stroke, - opacity, box-shadow, transform, filter, backdrop-filter, - -webkit-backdrop-filter; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; - width: 1.5rem; -} -.list-item-link > span { - flex-grow: 1; - font-weight: 400; - transition-property: background-color, border-color, color, fill, stroke, - opacity, box-shadow, transform, filter, backdrop-filter, - -webkit-backdrop-filter; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; -} -.list-item-link > span > span { - color: rgba(107, 114, 128, 1); - display: block; - flex-grow: 1; - font-size: 0.75rem; - font-weight: 300; - line-height: 1rem; - transition-property: background-color, border-color, color, fill, stroke, - opacity, box-shadow, transform, filter, backdrop-filter, - -webkit-backdrop-filter; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; -} -.list-item-link svg:last-child { - height: 1rem; - transition-property: all; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; - width: 1rem; -} -.list-item-link:hover { - color: rgba(255, 255, 255, 1); - background-color: hsla(162, 47%, 50%, 1); -} -.list-item-link:hover > span { -} -.list-item-link:hover > span > span { - color: rgba(243, 244, 246, 1); -} -.list-item-link:hover svg:last-child { - transform: translateX(0.25rem); -} -#other-links { -} -.button-pill { - padding: 1.5rem 2rem; - transition-duration: 300ms; - transition-property: background-color, border-color, color, fill, stroke, - opacity, box-shadow, transform, filter, backdrop-filter, - -webkit-backdrop-filter; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - align-items: center; - display: flex; -} -.button-pill svg { - transition-property: background-color, border-color, color, fill, stroke, - opacity, box-shadow, transform, filter, backdrop-filter, - -webkit-backdrop-filter; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; - flex-shrink: 0; - width: 3rem; -} -.button-pill > span { - letter-spacing: -0.025em; - font-weight: 400; - font-size: 1.125rem; - line-height: 1.75rem; - padding-left: 1rem; - padding-right: 1rem; -} -.button-pill span span { - display: block; - font-size: 0.875rem; - font-weight: 300; - line-height: 1.25rem; -} -.button-pill:hover svg, -.button-pill:hover { - color: rgba(255, 255, 255, 1) !important; -} -#nx-console:hover { - background-color: rgba(0, 122, 204, 1); -} -#nx-console svg { - color: rgba(0, 122, 204, 1); -} -#nx-console-jetbrains { - margin-top: 2rem; -} -#nx-console-jetbrains:hover { - background-color: rgba(255, 49, 140, 1); -} -#nx-console-jetbrains svg { - color: rgba(255, 49, 140, 1); -} -#nx-repo:hover { - background-color: rgba(24, 23, 23, 1); -} -#nx-repo svg { - color: rgba(24, 23, 23, 1); -} -#nx-cloud { - margin-bottom: 2rem; - margin-top: 2rem; - padding: 2.5rem 2rem; -} -#nx-cloud > div { - align-items: center; - display: flex; -} -#nx-cloud > div svg { - border-radius: 0.375rem; - flex-shrink: 0; - width: 3rem; -} -#nx-cloud > div h2 { - font-size: 1.125rem; - font-weight: 400; - letter-spacing: -0.025em; - line-height: 1.75rem; - padding-left: 1rem; - padding-right: 1rem; -} -#nx-cloud > div h2 span { - display: block; - font-size: 0.875rem; - font-weight: 300; - line-height: 1.25rem; -} -#nx-cloud p { - font-size: 1rem; - line-height: 1.5rem; - margin-top: 1rem; -} -#nx-cloud pre { - margin-top: 1rem; -} -#nx-cloud a { - color: rgba(107, 114, 128, 1); - display: block; - font-size: 0.875rem; - line-height: 1.25rem; - margin-top: 1.5rem; - text-align: right; -} -#nx-cloud a:hover { - text-decoration: underline; -} -#commands { - padding: 2.5rem 2rem; - margin-top: 3.5rem; -} -#commands h2 { - font-size: 1.25rem; - font-weight: 400; - letter-spacing: -0.025em; - line-height: 1.75rem; - padding-left: 1rem; - padding-right: 1rem; -} -#commands p { - font-size: 1rem; - font-weight: 300; - line-height: 1.5rem; - margin-top: 1rem; - padding-left: 1rem; - padding-right: 1rem; -} -details { - align-items: center; - display: flex; - margin-top: 1rem; - padding-left: 1rem; - padding-right: 1rem; - width: 100%; -} -details pre > span { - color: rgba(181, 181, 181, 1); - display: block; -} -summary { - border-radius: 0.5rem; - display: flex; - font-weight: 400; - padding: 0.5rem; - cursor: pointer; - transition-property: background-color, border-color, color, fill, stroke, - opacity, box-shadow, transform, filter, backdrop-filter, - -webkit-backdrop-filter; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; -} -summary:hover { - background-color: rgba(243, 244, 246, 1); -} -summary svg { - height: 1.5rem; - margin-right: 1rem; - width: 1.5rem; -} -#love { - color: rgba(107, 114, 128, 1); - font-size: 0.875rem; - line-height: 1.25rem; - margin-top: 3.5rem; - opacity: 0.6; - text-align: center; -} -#love svg { - color: rgba(252, 165, 165, 1); - width: 1.25rem; - height: 1.25rem; - display: inline; - margin-top: -0.25rem; -} -@media screen and (min-width: 768px) { - #hero { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - #hero .logo-container { - display: flex; - } - #middle-content { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } -} diff --git a/apps/unicorn-app/src/app/layout.tsx b/apps/unicorn-app/src/app/layout.tsx deleted file mode 100644 index 43b373a18bf6..000000000000 --- a/apps/unicorn-app/src/app/layout.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import './global.css' - -export const metadata = { - title: 'Welcome to Unicorn app', - description: 'Generated by create-nx-workspace', -} - -export default function RootLayout({ - children, -}: { - children: React.ReactNode -}) { - return ( - - {children} - - ) -} diff --git a/apps/unicorn-app/src/app/page.module.css b/apps/unicorn-app/src/app/page.module.css deleted file mode 100644 index 8a13e21cb311..000000000000 --- a/apps/unicorn-app/src/app/page.module.css +++ /dev/null @@ -1,2 +0,0 @@ -.page { -} diff --git a/apps/unicorn-app/src/app/page.tsx b/apps/unicorn-app/src/app/page.tsx deleted file mode 100644 index 5d9289cb0058..000000000000 --- a/apps/unicorn-app/src/app/page.tsx +++ /dev/null @@ -1,17 +0,0 @@ -export default function Index() { - return ( -
-
-
-
-

- - Welcome unicorn 🦄 - -

-
-
-
-
- ) -} diff --git a/apps/unicorn-app/tsconfig.json b/apps/unicorn-app/tsconfig.json deleted file mode 100644 index 37e77ed8c826..000000000000 --- a/apps/unicorn-app/tsconfig.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "jsx": "preserve", - "allowJs": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "types": ["node", "jest"], - "strict": false, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "resolveJsonModule": true, - "isolatedModules": true, - "incremental": true, - "plugins": [ - { - "name": "next" - } - ] - }, - "include": [ - "**/*.ts", - "**/*.tsx", - "**/*.js", - "**/*.jsx", - "next-env.d.ts", - ".next/types/**/*.ts" - ], - "exclude": ["node_modules", "jest.config.ts"] -} diff --git a/apps/unicorn-app/tsconfig.server.json b/apps/unicorn-app/tsconfig.server.json deleted file mode 100644 index 8fafdb4be36d..000000000000 --- a/apps/unicorn-app/tsconfig.server.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "commonjs", - "noEmit": false, - "incremental": true, - "tsBuildInfoFile": "../../tmp/buildcache/apps/unicorn-app/server", - "types": ["node"] - }, - "include": ["server.ts"] -} diff --git a/apps/unicorn-app/tsconfig.spec.json b/apps/unicorn-app/tsconfig.spec.json deleted file mode 100644 index 214b2cc208c1..000000000000 --- a/apps/unicorn-app/tsconfig.spec.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"], - "jsx": "react" - }, - "include": [ - "jest.config.ts", - "src/**/*.test.ts", - "src/**/*.spec.ts", - "src/**/*.test.tsx", - "src/**/*.spec.tsx", - "src/**/*.test.js", - "src/**/*.spec.js", - "src/**/*.test.jsx", - "src/**/*.spec.jsx", - "src/**/*.d.ts" - ] -} diff --git a/apps/unicorn-app/webpack.config.js b/apps/unicorn-app/webpack.config.js deleted file mode 100644 index 95e68d080f5b..000000000000 --- a/apps/unicorn-app/webpack.config.js +++ /dev/null @@ -1,8 +0,0 @@ -const { composePlugins, withNx } = require('@nx/webpack') - -// Nx plugins for webpack. -module.exports = composePlugins(withNx(), (config) => { - // Note: This was added by an Nx migration. Webpack builds are required to have a corresponding Webpack config file. - // See: https://nx.dev/recipes/webpack/webpack-config-setup - return config -}) diff --git a/charts/islandis/values.dev.yaml b/charts/islandis/values.dev.yaml index 29be8c5e25f0..e0f5e81d1937 100644 --- a/charts/islandis/values.dev.yaml +++ b/charts/islandis/values.dev.yaml @@ -1810,7 +1810,6 @@ namespaces: - 'services-sessions' - 'contentful-apps' - 'services-university-gateway' - - 'unicorn-app' - 'portals-my-pages' portals-admin: enabled: true @@ -3155,69 +3154,6 @@ skilavottord-ws: securityContext: allowPrivilegeEscalation: false privileged: false -unicorn-app: - enabled: true - env: - LOG_LEVEL: 'info' - NODE_OPTIONS: '--max-old-space-size=230 -r dd-trace/init' - SERVERSIDE_FEATURES_ON: '' - grantNamespaces: [] - grantNamespacesEnabled: false - healthCheck: - liveness: - initialDelaySeconds: 3 - path: '/liveness' - timeoutSeconds: 3 - readiness: - initialDelaySeconds: 3 - path: '/readiness' - timeoutSeconds: 3 - hpa: - scaling: - metric: - cpuAverageUtilization: 90 - nginxRequestsIrate: 5 - replicas: - max: 10 - min: 1 - image: - repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/unicorn-app' - ingress: - primary-alb: - annotations: - kubernetes.io/ingress.class: 'nginx-external-alb' - nginx.ingress.kubernetes.io/service-upstream: 'true' - hosts: - - host: 'unicorn-app.dev01.devland.is' - paths: - - '/' - namespace: 'unicorn-app' - podDisruptionBudget: - maxUnavailable: 1 - podSecurityContext: - fsGroup: 65534 - pvcs: [] - replicaCount: - default: 1 - max: 10 - min: 1 - resources: - limits: - cpu: '200m' - memory: '256Mi' - requests: - cpu: '50m' - memory: '128Mi' - secrets: - CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY' - securityContext: - allowPrivilegeEscalation: false - privileged: false - serviceAccount: - annotations: - eks.amazonaws.com/role-arn: 'arn:aws:iam::013313053092:role/unicorn-app' - create: true - name: 'unicorn-app' user-notification: args: - '--no-experimental-fetch' diff --git a/charts/islandis/values.prod.yaml b/charts/islandis/values.prod.yaml index ac8712e81ede..d08668a62457 100644 --- a/charts/islandis/values.prod.yaml +++ b/charts/islandis/values.prod.yaml @@ -1674,7 +1674,6 @@ namespaces: - 'services-university-gateway' - 'contentful-apps' - 'contentful-entry-tagger' - - 'unicorn-app' - 'portals-my-pages' portals-admin: enabled: true @@ -3034,69 +3033,6 @@ skilavottord-ws: securityContext: allowPrivilegeEscalation: false privileged: false -unicorn-app: - enabled: true - env: - LOG_LEVEL: 'info' - NODE_OPTIONS: '--max-old-space-size=230 -r dd-trace/init' - SERVERSIDE_FEATURES_ON: 'driving-license-use-v1-endpoint-for-v2-comms' - grantNamespaces: [] - grantNamespacesEnabled: false - healthCheck: - liveness: - initialDelaySeconds: 3 - path: '/liveness' - timeoutSeconds: 3 - readiness: - initialDelaySeconds: 3 - path: '/readiness' - timeoutSeconds: 3 - hpa: - scaling: - metric: - cpuAverageUtilization: 90 - nginxRequestsIrate: 5 - replicas: - max: 10 - min: 1 - image: - repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/unicorn-app' - ingress: - primary-alb: - annotations: - kubernetes.io/ingress.class: 'nginx-external-alb' - nginx.ingress.kubernetes.io/service-upstream: 'true' - hosts: - - host: 'unicorn-app.island.is' - paths: - - '/' - namespace: 'unicorn-app' - podDisruptionBudget: - maxUnavailable: 1 - podSecurityContext: - fsGroup: 65534 - pvcs: [] - replicaCount: - default: 1 - max: 10 - min: 1 - resources: - limits: - cpu: '200m' - memory: '256Mi' - requests: - cpu: '50m' - memory: '128Mi' - secrets: - CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY' - securityContext: - allowPrivilegeEscalation: false - privileged: false - serviceAccount: - annotations: - eks.amazonaws.com/role-arn: 'arn:aws:iam::251502586493:role/unicorn-app' - create: true - name: 'unicorn-app' user-notification: args: - '--no-experimental-fetch' diff --git a/charts/islandis/values.staging.yaml b/charts/islandis/values.staging.yaml index 2a2928d07132..d1c2a12649f8 100644 --- a/charts/islandis/values.staging.yaml +++ b/charts/islandis/values.staging.yaml @@ -1548,7 +1548,6 @@ namespaces: - 'license-api' - 'services-sessions' - 'services-university-gateway' - - 'unicorn-app' - 'portals-my-pages' portals-admin: enabled: true @@ -2893,69 +2892,6 @@ skilavottord-ws: securityContext: allowPrivilegeEscalation: false privileged: false -unicorn-app: - enabled: true - env: - LOG_LEVEL: 'info' - NODE_OPTIONS: '--max-old-space-size=230 -r dd-trace/init' - SERVERSIDE_FEATURES_ON: '' - grantNamespaces: [] - grantNamespacesEnabled: false - healthCheck: - liveness: - initialDelaySeconds: 3 - path: '/liveness' - timeoutSeconds: 3 - readiness: - initialDelaySeconds: 3 - path: '/readiness' - timeoutSeconds: 3 - hpa: - scaling: - metric: - cpuAverageUtilization: 90 - nginxRequestsIrate: 5 - replicas: - max: 3 - min: 1 - image: - repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/unicorn-app' - ingress: - primary-alb: - annotations: - kubernetes.io/ingress.class: 'nginx-external-alb' - nginx.ingress.kubernetes.io/service-upstream: 'true' - hosts: - - host: 'unicorn-app.staging01.devland.is' - paths: - - '/' - namespace: 'unicorn-app' - podDisruptionBudget: - maxUnavailable: 1 - podSecurityContext: - fsGroup: 65534 - pvcs: [] - replicaCount: - default: 1 - max: 3 - min: 1 - resources: - limits: - cpu: '200m' - memory: '256Mi' - requests: - cpu: '50m' - memory: '128Mi' - secrets: - CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY' - securityContext: - allowPrivilegeEscalation: false - privileged: false - serviceAccount: - annotations: - eks.amazonaws.com/role-arn: 'arn:aws:iam::261174024191:role/unicorn-app' - create: true - name: 'unicorn-app' user-notification: args: - '--no-experimental-fetch' diff --git a/charts/services/unicorn-app/values.dev.yaml b/charts/services/unicorn-app/values.dev.yaml deleted file mode 100644 index 345b91dd5ddb..000000000000 --- a/charts/services/unicorn-app/values.dev.yaml +++ /dev/null @@ -1,81 +0,0 @@ -##################################################################### -# -# Do not edit this file manually, it is automatically generated. -# Run "yarn charts" instead. -# -##################################################################### - -global: - env: - AUDIT_GROUP_NAME: '/island-is/audit-log' - AWS_REGION: 'eu-west-1' - NPM_CONFIG_UPDATE_NOTIFIER: 'false' - PORT: '3333' - name: 'dev' - initContainer: - env: - AWS_REGION: 'eu-west-1' - NPM_CONFIG_UPDATE_NOTIFIER: 'false' -name: 'unicorn-app' -enabled: true -env: - LOG_LEVEL: 'info' - NODE_OPTIONS: '--max-old-space-size=230 -r dd-trace/init' - SERVERSIDE_FEATURES_ON: '' -grantNamespaces: [] -grantNamespacesEnabled: false -healthCheck: - liveness: - initialDelaySeconds: 3 - path: '/liveness' - timeoutSeconds: 3 - readiness: - initialDelaySeconds: 3 - path: '/readiness' - timeoutSeconds: 3 -hpa: - scaling: - metric: - cpuAverageUtilization: 90 - nginxRequestsIrate: 5 - replicas: - max: 10 - min: 1 -image: - repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/unicorn-app' -ingress: - primary-alb: - annotations: - kubernetes.io/ingress.class: 'nginx-external-alb' - nginx.ingress.kubernetes.io/service-upstream: 'true' - hosts: - - host: 'unicorn-app.dev01.devland.is' - paths: - - '/' -namespace: 'unicorn-app' -podDisruptionBudget: - maxUnavailable: 1 -podSecurityContext: - fsGroup: 65534 -pvcs: [] -replicaCount: - default: 1 - max: 10 - min: 1 -resources: - limits: - cpu: '200m' - memory: '256Mi' - requests: - cpu: '50m' - memory: '128Mi' -secrets: - CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY' -securityContext: - allowPrivilegeEscalation: false - privileged: false -serviceAccount: - annotations: - eks.amazonaws.com/role-arn: 'arn:aws:iam::013313053092:role/unicorn-app' - create: true - name: 'unicorn-app' diff --git a/charts/services/unicorn-app/values.prod.yaml b/charts/services/unicorn-app/values.prod.yaml deleted file mode 100644 index f9782daf09fc..000000000000 --- a/charts/services/unicorn-app/values.prod.yaml +++ /dev/null @@ -1,81 +0,0 @@ -##################################################################### -# -# Do not edit this file manually, it is automatically generated. -# Run "yarn charts" instead. -# -##################################################################### - -global: - env: - AUDIT_GROUP_NAME: '/island-is/audit-log' - AWS_REGION: 'eu-west-1' - NPM_CONFIG_UPDATE_NOTIFIER: 'false' - PORT: '3333' - name: 'prod' - initContainer: - env: - AWS_REGION: 'eu-west-1' - NPM_CONFIG_UPDATE_NOTIFIER: 'false' -name: 'unicorn-app' -enabled: true -env: - LOG_LEVEL: 'info' - NODE_OPTIONS: '--max-old-space-size=230 -r dd-trace/init' - SERVERSIDE_FEATURES_ON: 'driving-license-use-v1-endpoint-for-v2-comms' -grantNamespaces: [] -grantNamespacesEnabled: false -healthCheck: - liveness: - initialDelaySeconds: 3 - path: '/liveness' - timeoutSeconds: 3 - readiness: - initialDelaySeconds: 3 - path: '/readiness' - timeoutSeconds: 3 -hpa: - scaling: - metric: - cpuAverageUtilization: 90 - nginxRequestsIrate: 5 - replicas: - max: 10 - min: 1 -image: - repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/unicorn-app' -ingress: - primary-alb: - annotations: - kubernetes.io/ingress.class: 'nginx-external-alb' - nginx.ingress.kubernetes.io/service-upstream: 'true' - hosts: - - host: 'unicorn-app.island.is' - paths: - - '/' -namespace: 'unicorn-app' -podDisruptionBudget: - maxUnavailable: 1 -podSecurityContext: - fsGroup: 65534 -pvcs: [] -replicaCount: - default: 1 - max: 10 - min: 1 -resources: - limits: - cpu: '200m' - memory: '256Mi' - requests: - cpu: '50m' - memory: '128Mi' -secrets: - CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY' -securityContext: - allowPrivilegeEscalation: false - privileged: false -serviceAccount: - annotations: - eks.amazonaws.com/role-arn: 'arn:aws:iam::251502586493:role/unicorn-app' - create: true - name: 'unicorn-app' diff --git a/charts/services/unicorn-app/values.staging.yaml b/charts/services/unicorn-app/values.staging.yaml deleted file mode 100644 index 50960c303bef..000000000000 --- a/charts/services/unicorn-app/values.staging.yaml +++ /dev/null @@ -1,81 +0,0 @@ -##################################################################### -# -# Do not edit this file manually, it is automatically generated. -# Run "yarn charts" instead. -# -##################################################################### - -global: - env: - AUDIT_GROUP_NAME: '/island-is/audit-log' - AWS_REGION: 'eu-west-1' - NPM_CONFIG_UPDATE_NOTIFIER: 'false' - PORT: '3333' - name: 'staging' - initContainer: - env: - AWS_REGION: 'eu-west-1' - NPM_CONFIG_UPDATE_NOTIFIER: 'false' -name: 'unicorn-app' -enabled: true -env: - LOG_LEVEL: 'info' - NODE_OPTIONS: '--max-old-space-size=230 -r dd-trace/init' - SERVERSIDE_FEATURES_ON: '' -grantNamespaces: [] -grantNamespacesEnabled: false -healthCheck: - liveness: - initialDelaySeconds: 3 - path: '/liveness' - timeoutSeconds: 3 - readiness: - initialDelaySeconds: 3 - path: '/readiness' - timeoutSeconds: 3 -hpa: - scaling: - metric: - cpuAverageUtilization: 90 - nginxRequestsIrate: 5 - replicas: - max: 3 - min: 1 -image: - repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/unicorn-app' -ingress: - primary-alb: - annotations: - kubernetes.io/ingress.class: 'nginx-external-alb' - nginx.ingress.kubernetes.io/service-upstream: 'true' - hosts: - - host: 'unicorn-app.staging01.devland.is' - paths: - - '/' -namespace: 'unicorn-app' -podDisruptionBudget: - maxUnavailable: 1 -podSecurityContext: - fsGroup: 65534 -pvcs: [] -replicaCount: - default: 1 - max: 3 - min: 1 -resources: - limits: - cpu: '200m' - memory: '256Mi' - requests: - cpu: '50m' - memory: '128Mi' -secrets: - CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY' -securityContext: - allowPrivilegeEscalation: false - privileged: false -serviceAccount: - annotations: - eks.amazonaws.com/role-arn: 'arn:aws:iam::261174024191:role/unicorn-app' - create: true - name: 'unicorn-app' diff --git a/infra/src/uber-charts/islandis.ts b/infra/src/uber-charts/islandis.ts index db2d1ecc6940..569b921bc2bf 100644 --- a/infra/src/uber-charts/islandis.ts +++ b/infra/src/uber-charts/islandis.ts @@ -62,7 +62,6 @@ import { } from '../../../apps/services/sessions/infra/sessions' import { serviceSetup as authAdminApiSetup } from '../../../apps/services/auth/admin-api/infra/auth-admin-api' -import { serviceSetup as unicornAppSetup } from '../../../apps/unicorn-app/infra/infra' import { EnvironmentServices } from '.././dsl/types/charts' import { ServiceBuilder } from '../dsl/dsl' @@ -147,8 +146,6 @@ const userNotificationWorkerService = userNotificationWorkerSetup({ const userNotificationCleanupWorkerService = userNotificationCleanUpWorkerSetup() -const unicornApp = unicornAppSetup() - const githubActionsCache = githubActionsCacheSetup() const externalContractsTests = externalContractsTestsSetup() @@ -189,7 +186,6 @@ export const Services: EnvironmentServices = { contentfulApps, contentfulEntryTagger, bffAdminPortalService, - unicornApp, bffServicePortalService, ], staging: [ @@ -225,7 +221,6 @@ export const Services: EnvironmentServices = { universityGatewayService, universityGatewayWorker, bffAdminPortalService, - unicornApp, bffServicePortalService, ], dev: [ @@ -265,7 +260,6 @@ export const Services: EnvironmentServices = { universityGatewayService, universityGatewayWorker, bffAdminPortalService, - unicornApp, bffServicePortalService, ], } diff --git a/scripts/ci/create-release.mjs b/scripts/ci/create-release.mjs deleted file mode 100644 index 85d818b14889..000000000000 --- a/scripts/ci/create-release.mjs +++ /dev/null @@ -1,35 +0,0 @@ -import { Octokit } from '@octokit/rest' - -const { GITHUB_TOKEN, GITHUB_REPOSITORY, GITHUB_REF } = process.env -const octokit = new Octokit({ auth: GITHUB_TOKEN }) -const [owner, repo] = GITHUB_REPOSITORY?.split('/') || [] - -const arg = process.argv.slice(2) - -const { data: pullRequest } = await octokit.rest.pulls.get({ - owner: owner, - repo: repo, - pull_number: arg[0], -}) - -const SHA = pullRequest.head.sha -// This is a temporary commit that is created behind the scenes for -// the test merge that validated no conflicts exist with the base branch. -// It is not committed to the repository. -// After the PR is merged, this value instead represents the SHA of the merge commit -octokit.rest.repos - .createRelease({ - owner: owner, - repo: repo, - target_commitish: SHA, - tag_name: 'SomeTag', - name: 'Test 123', - generate_release_notes: true, - }) - .then(({ data }) => { - console.log(data) - }) - .catch((error) => { - console.log(error) - process.exit(1) - }) diff --git a/scripts/ci/get-last-release.mjs b/scripts/ci/get-last-release.mjs deleted file mode 100644 index 03feaf63f4d0..000000000000 --- a/scripts/ci/get-last-release.mjs +++ /dev/null @@ -1,17 +0,0 @@ -const releases = process.argv - .slice(2) - .map((release) => release.replace('origin/release/', '')) - .filter((release) => /^\d+\.\d+\.\d+$/.test(release)) - .sort((a, b) => { - const [aMajor, aMinor, aPatch] = a.split('.').map(Number) - const [bMajor, bMinor, bPatch] = b.split('.').map(Number) - - if (aMajor !== bMajor) { - return bMajor - aMajor - } else if (aMinor !== bMinor) { - return bMinor - aMinor - } else { - return bPatch - aPatch - } - }) -console.log(releases[0]) diff --git a/scripts/ci/unicorn-utils.mjs b/scripts/ci/unicorn-utils.mjs deleted file mode 100644 index 22078efe215d..000000000000 --- a/scripts/ci/unicorn-utils.mjs +++ /dev/null @@ -1,17 +0,0 @@ -import { execSync } from 'child_process' -import { workspaceRoot } from '@nx/devkit' - -const unicornApps = ['unicorn-app'] - -const arg = JSON.parse(process.argv.slice(2)) -try { - const affected = JSON.parse( - execSync( - `cd ${workspaceRoot} && yarn nx show projects --affected --base ${arg.baseBranch} --json | jq -r`, - ).toString(), - ) - console.log(affected.some((item) => unicornApps.includes(item))) -} catch (e) { - console.error(e.message) - process.exit(1) -} diff --git a/tsconfig.base.json b/tsconfig.base.json index 32541263a4c8..7be0f1c28845 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1126,7 +1126,6 @@ "@island.is/testing/e2e": ["libs/testing/e2e/src/index.ts"], "@island.is/testing/fixtures": ["libs/testing/fixtures/src/index.ts"], "@island.is/testing/nest": ["libs/testing/nest/src/index.ts"], - "@island.is/unicorn-app/*": ["apps/unicorn-app/*"], "@island.is/university-gateway": ["libs/university-gateway/src/index.ts"], "@island.is/user-monitoring": ["libs/user-monitoring/src/index.ts"], "@island.is/web/*": ["apps/web/*"],