Skip to content

Commit 813fffe

Browse files
Merge pull request #60 from atlas-bi/alpha
removed test
2 parents 3bb758c + b19179e commit 813fffe

File tree

204 files changed

+4699
-4328
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+4699
-4328
lines changed

.czrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "cz-conventional-changelog"
3+
}

.env.example

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
1+
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/system"
22
SESSION_SECRET="super-duper-s3cret"
3+
4+
PASS_KEY="0123456789abcdef0123456789abcdef"
5+
6+
LDAP_HOST="ldap://localhost:1389"
7+
LDAP_START_TLS="false"
8+
LDAP_USERNAME="cn=admin,dc=example,dc=org"
9+
LDAP_PASSWORD="adminpassword"
10+
LDAP_BASE_DN="dc=example,dc=org"
11+
12+
LDAP_EMAIL_FIELD="sn"
13+
LDAP_USER_GROUP="groupOfNames"
14+
LDAP_FIRSTNAME="givenName"
15+
LDAP_LASTNAME="displayName"
16+
LDAP_PHOTO_FIELD="jpegPhoto"

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

.eslintrc.repo.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,24 @@ jobs:
1414
last_release_version: ${{ steps.semantic.outputs.last_release_version }}
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v6
1818

1919
with:
2020
fetch-depth: 0
2121
persist-credentials: false
2222

2323
- name: ⎔ Setup node
24-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v6
2525
with:
2626
node-version: 18
2727

28+
- name: ⎔ Setup pnpm
29+
run: corepack enable
30+
2831
- name: 📥 Download deps
29-
uses: bahmutov/npm-install@v1
30-
with:
31-
useLockFile: false
32+
run: pnpm install
3233

33-
- run: npm run build
34+
- run: pnpm run build
3435

3536
- name: Semantic Release
3637
uses: cycjimmy/semantic-release-action@v3

.github/workflows/test.yml

Lines changed: 139 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -12,136 +12,180 @@ permissions:
1212
contents: read
1313

1414
jobs:
15-
shell:
16-
name: ✓ ShellCheck
15+
#shell:
16+
# name: ✓ ShellCheck
17+
# runs-on: ubuntu-latest
18+
# steps:
19+
# - name: 🛑 Cancel Previous Runs
20+
# uses: styfle/cancel-workflow-action@0.11.0
21+
22+
# - name: ⬇️ Checkout repo
23+
# uses: actions/checkout@v3
24+
25+
# - name: ⎔ Setup ShellCheck
26+
# run: sudo apt-get update; sudo apt-get install -y shellcheck
27+
28+
# - name: 🔬 Lint
29+
# run: |
30+
# cd packages
31+
# shellcheck **/*.sh
32+
# shellcheck **/atlas-requests
33+
# shellcheck **/install
34+
# shellcheck **/postinst
35+
# shellcheck **/preinst
36+
build:
37+
name: 🧪 Build
1738
runs-on: ubuntu-latest
1839
steps:
1940
- name: 🛑 Cancel Previous Runs
20-
uses: styfle/cancel-workflow-action@0.11.0
41+
uses: styfle/cancel-workflow-action@0.13.1
2142

2243
- name: ⬇️ Checkout repo
23-
uses: actions/checkout@v3
24-
25-
- name: ⎔ Setup ShellCheck
26-
run: sudo apt-get update; sudo apt-get install -y shellcheck
27-
28-
- name: 🔬 Lint
29-
run: |
30-
cd packages
31-
shellcheck **/*.sh
32-
shellcheck **/atlas-requests
33-
shellcheck **/install
34-
shellcheck **/postinst
35-
shellcheck **/preinst
36-
37-
lint:
38-
name: ⬣ ESLint
39-
runs-on: ubuntu-latest
40-
steps:
41-
- name: 🛑 Cancel Previous Runs
42-
uses: styfle/cancel-workflow-action@0.11.0
43-
44-
- name: ⬇️ Checkout repo
45-
uses: actions/checkout@v3
44+
uses: actions/checkout@v6
4645

4746
- name: ⎔ Setup node
48-
uses: actions/setup-node@v3
47+
uses: actions/setup-node@v6
4948
with:
50-
node-version: 16
49+
node-version: 18
50+
51+
- name: ⎔ Setup pnpm
52+
run: corepack enable
5153

5254
- name: 📥 Download deps
53-
uses: bahmutov/npm-install@v1
54-
with:
55-
useLockFile: false
55+
run: pnpm install
5656

57-
- name: 🔬 Lint
58-
run: npm run lint
57+
- name: 🔬 Build
58+
run: pnpm run build
5959

60-
typecheck:
61-
name: ʦ TypeScript
60+
lint:
61+
name: ⬣ Biome
6262
runs-on: ubuntu-latest
6363
steps:
6464
- name: 🛑 Cancel Previous Runs
65-
uses: styfle/cancel-workflow-action@0.11.0
65+
uses: styfle/cancel-workflow-action@0.13.1
6666

6767
- name: ⬇️ Checkout repo
68-
uses: actions/checkout@v3
68+
uses: actions/checkout@v6
6969

7070
- name: ⎔ Setup node
71-
uses: actions/setup-node@v3
71+
uses: actions/setup-node@v6
7272
with:
73-
node-version: 16
73+
node-version: 18
74+
75+
- name: ⎔ Setup pnpm
76+
run: corepack enable
7477

7578
- name: 📥 Download deps
76-
uses: bahmutov/npm-install@v1
77-
with:
78-
useLockFile: false
79+
run: pnpm install
7980

80-
- name: 🔎 Type check
81-
run: npm run typecheck --if-present
81+
- name: 🔬 Lint
82+
run: pnpm run lint
83+
84+
# typecheck:
85+
# name: ʦ TypeScript
86+
# runs-on: ubuntu-latest
87+
# steps:
88+
# - name: 🛑 Cancel Previous Runs
89+
# uses: styfle/cancel-workflow-action@0.11.0
90+
#
91+
# - name: ⬇️ Checkout repo
92+
# uses: actions/checkout@v3
93+
#
94+
# - name: ⎔ Setup node
95+
# uses: actions/setup-node@v3
96+
# with:
97+
# node-version: 18
98+
#
99+
# - name: ⎔ Setup pnpm
100+
# run: corepack enable
101+
#
102+
# - name: 📥 Download deps
103+
# run: pnpm install
104+
#
105+
# - name: 🔎 Type check
106+
# run: pnpm run typecheck --if-present
82107

83108
vitest:
84109
name: ⚡ Vitest
85110
runs-on: ubuntu-latest
86111
steps:
87112
- name: 🛑 Cancel Previous Runs
88-
uses: styfle/cancel-workflow-action@0.11.0
113+
uses: styfle/cancel-workflow-action@0.13.1
89114

90115
- name: ⬇️ Checkout repo
91-
uses: actions/checkout@v3
116+
uses: actions/checkout@v6
92117

93118
- name: ⎔ Setup node
94-
uses: actions/setup-node@v3
119+
uses: actions/setup-node@v6
95120
with:
96-
node-version: 16
121+
node-version: 18
97122

98-
- name: 📥 Download deps
99-
uses: bahmutov/npm-install@v1
100-
with:
101-
useLockFile: false
102-
103-
- name: ⚡ Run vitest
104-
run: npm run test -- --coverage
105-
106-
cypress:
107-
name: ⚫️ Cypress
108-
runs-on: ubuntu-latest
109-
steps:
110-
- name: 🛑 Cancel Previous Runs
111-
uses: styfle/cancel-workflow-action@0.11.0
112-
113-
- name: ⬇️ Checkout repo
114-
uses: actions/checkout@v3
115-
116-
- name: 🏄 Copy test env vars
117-
run: cp .env.example .env
118-
119-
- name: ⎔ Setup node
120-
uses: actions/setup-node@v3
121-
with:
122-
node-version: 16
123+
- name: ⎔ Setup pnpm
124+
run: corepack enable
123125

124126
- name: 📥 Download deps
125-
uses: bahmutov/npm-install@v1
126-
with:
127-
useLockFile: false
128-
129-
- name: 🐳 Docker compose
130-
# the sleep is just there to give time for postgres to get started
131-
run: docker-compose up -d && sleep 3
132-
env:
133-
DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432/postgres'
127+
run: pnpm install
134128

135-
- name: 🛠 Setup Database
136-
run: npx prisma migrate reset --force
137-
138-
- name: ⚙️ Build
139-
run: npm run build
140-
141-
- name: 🌳 Cypress run
142-
uses: cypress-io/github-action@v5
143-
with:
144-
start: npm run start:mocks
145-
wait-on: 'http://localhost:8811'
146-
env:
147-
PORT: '8811'
129+
- name: ⚡ Run vitest
130+
run: pnpm exec vitest --coverage
131+
132+
# cypress:
133+
# name: ⚫️ Cypress
134+
# runs-on: ubuntu-latest
135+
# env:
136+
# POSTGRES_USER: postgres
137+
# POSTGRES_PASSWORD: ${{ github.run_id }}
138+
# POSTGRES_DB: postgres
139+
# services:
140+
# postgres:
141+
# image: postgres:14
142+
# env:
143+
# POSTGRES_USER: postgres
144+
# POSTGRES_PASSWORD: ${{ github.run_id }}
145+
# POSTGRES_DB: postgres
146+
# ports:
147+
# - 5432:5432
148+
# options: >-
149+
# --health-cmd "pg_isready -U postgres -d postgres"
150+
# --health-interval 10s
151+
# --health-timeout 5s
152+
# --health-retries 5
153+
# steps:
154+
# - name: 🛑 Cancel Previous Runs
155+
# uses: styfle/cancel-workflow-action@0.11.0
156+
#
157+
# - name: ⬇️ Checkout repo
158+
# uses: actions/checkout@v3
159+
#
160+
# - name: 🏄 Copy test env vars
161+
# run: |
162+
# echo "DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}" > .env
163+
# echo "SESSION_SECRET=atlas-ci" >> .env
164+
#
165+
# - name: ⎔ Setup node
166+
# uses: actions/setup-node@v3
167+
# with:
168+
# node-version: 18
169+
#
170+
# - name: Setup pnpm
171+
# run: corepack enable
172+
#
173+
# - name: Download deps
174+
# run: pnpm install
175+
#
176+
# - name: Setup Database
177+
# run: pnpm exec prisma migrate reset --force
178+
# env:
179+
# DATABASE_URL: 'postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@localhost:5432/${{ env.POSTGRES_DB }}'
180+
#
181+
# - name: Build
182+
# run: pnpm run build
183+
#
184+
# - name: Cypress run
185+
# uses: cypress-io/github-action@v5
186+
# with:
187+
# start: pnpm run start:mocks
188+
# wait-on: 'http://localhost:8811'
189+
# env:
190+
# PORT: '8811'
191+
# DISABLE_BACKGROUND_SERVICES: '1'

0 commit comments

Comments
 (0)