Skip to content

Commit

Permalink
Merge pull request #674 from thinc-org/beta
Browse files Browse the repository at this point in the history
Deploy Production 9/3/2567
  • Loading branch information
leomotors authored Mar 9, 2024
2 parents ed51384 + 3c5f769 commit 4a740cf
Show file tree
Hide file tree
Showing 115 changed files with 6,156 additions and 6,471 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-insects-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"web": patch
---

test: migrate unit test
22 changes: 22 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"mode": "exit",
"tag": "beta",
"initialVersions": {
"admin-api": "1.1.0",
"admin-web": "1.1.0",
"api": "1.7.0",
"reg-scraper": "1.3.0",
"web": "1.8.0",
"web-e2e": "0.1.0",
"@cgr/codegen": "1.3.0",
"@cgr/course-utils": "1.1.0",
"@cgr/project-config": "1.1.0",
"@cgr/schema": "1.3.0"
},
"changesets": [
"polite-insects-flow",
"sixty-eels-explode",
"sixty-waves-tie",
"tiny-cheetahs-yawn"
]
}
5 changes: 5 additions & 0 deletions .changeset/sixty-eels-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"web": patch
---

chore: enable new semester (2566/3)
14 changes: 14 additions & 0 deletions .changeset/sixty-waves-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@cgr/project-config": minor
"@cgr/course-utils": minor
"reg-scraper": minor
"@cgr/codegen": minor
"@cgr/schema": minor
"admin-api": minor
"admin-web": minor
"web-e2e": minor
"api": minor
"web": minor
---

deps: upgrade to node 20 and bump all patch-minor
14 changes: 14 additions & 0 deletions .changeset/tiny-cheetahs-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@cgr/project-config": minor
"@cgr/codegen": minor
"admin-web": minor
"web": minor
"@cgr/course-utils": patch
"reg-scraper": patch
"@cgr/schema": patch
"admin-api": patch
"web-e2e": patch
"api": patch
---

feat: next 14 and minor dependencies
11 changes: 5 additions & 6 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,26 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout

- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false

- name: Setup node with cache
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: .nvmrc
cache: pnpm

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ jobs:

strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc

- name: Check if pre.json exists
id: pre-release-file
Expand All @@ -52,7 +53,7 @@ jobs:
run: npx changeset pre exit

- name: Commit Changes to the Pull Request
uses: EndBug/add-and-commit@v7
uses: EndBug/add-and-commit@v9
with:
add: .changeset/pre.json
message: 'Configure pre-release mode'
10 changes: 4 additions & 6 deletions .github/workflows/release-without-versioning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:

strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand All @@ -39,20 +38,19 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc

- name: Install pnpm
uses: pnpm/action-setup@v2.2.2
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false

- name: Install turbo
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:

strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand All @@ -66,21 +65,20 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# related to issue, https://github.com/changesets/action/issues/201
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc

- name: Install pnpm
uses: pnpm/action-setup@v2.2.2
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false

- name: Get pnpm store directory
Expand All @@ -89,7 +87,7 @@ jobs:
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- name: Setup pnpm cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
Expand All @@ -100,7 +98,7 @@ jobs:

- name: Create Versioning Pull Request
id: changesets
uses: changesets/action@v1.4.1
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/reusable-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,28 @@ jobs:
run:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false

- name: Setup node with cache
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: .nvmrc
cache: pnpm

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
Expand All @@ -51,7 +50,7 @@ jobs:

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6
uses: tj-actions/branch-names@v8

- name: Echo base branch name
id: get-base-branch
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/sync-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:

strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand All @@ -27,7 +26,7 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: beta
fetch-depth: 0
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-gitops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ inputs.gitops-repository }}
ref: ${{ inputs.gitops-ref }}
Expand Down Expand Up @@ -87,6 +87,7 @@ jobs:
PACKAGES: ${{ inputs.packages }}

- name: Create Pull Request to GitOps
# TODO Migrate
uses: peter-evans/create-pull-request@v4
if: ${{ inputs.mode == 'pr' }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/hydrogen
lts/iron
6 changes: 1 addition & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint"
]
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
}
19 changes: 19 additions & 0 deletions apps/admin-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# admin-api

## 1.2.0-beta.1

### Patch Changes

- c0e5777: feat: next 14 and minor dependencies
- Updated dependencies [c0e5777]
- @cgr/schema@1.4.0-beta.1

## 1.2.0-beta.0

### Minor Changes

- 4f342ee: deps: upgrade to node 20 and bump all patch-minor

### Patch Changes

- Updated dependencies [4f342ee]
- @cgr/schema@1.4.0-beta.0

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/admin-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# When copying this Dockerfile for use in other apps, don't forget to change the scope (api, web, etc.) in RUN commands

FROM node:18-alpine AS pnpm
FROM node:20-alpine AS pnpm
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
RUN apk update
Expand Down
16 changes: 0 additions & 16 deletions apps/admin-api/jest.config.ts

This file was deleted.

17 changes: 7 additions & 10 deletions apps/admin-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "admin-api",
"version": "1.1.0",
"version": "1.2.0-beta.1",
"description": "",
"author": "",
"private": true,
Expand All @@ -14,7 +14,7 @@
"prebuild": "rimraf dist"
},
"dependencies": {
"@apollo/server": "^4.9.3",
"@apollo/server": "^4.10.0",
"@cgr/schema": "workspace:*",
"@nestjs/apollo": "^11.0.6",
"@nestjs/axios": "^2.0.0",
Expand All @@ -37,14 +37,11 @@
"rxjs": "^7.8.1"
},
"devDependencies": {
"@types/cookie-parser": "^1.4.4",
"@types/express": "^4.17.18",
"@types/jest": "29.5.5",
"@types/node": "^18.18.1",
"eslint": "8.50.0",
"jest": "29.7.0",
"ts-jest": "29.1.1",
"@types/cookie-parser": "^1.4.6",
"@types/express": "^4.17.21",
"@types/node": "^20.11.17",
"eslint": "8.56.0",
"ts-morph": "^20.0.0",
"typescript": "~5.2.2"
"typescript": "~5.3.3"
}
}
2 changes: 1 addition & 1 deletion apps/admin-api/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "../../node_modules", "jest.config.ts", "test", "dist", "**/*spec.ts"]
"exclude": ["node_modules", "../../node_modules", "test", "dist", "**/*spec.ts"]
}
Loading

0 comments on commit 4a740cf

Please sign in to comment.