Skip to content

Commit 479c8ff

Browse files
authored
GitHub actions linting (stack-auth#17)
1 parent 66f6c86 commit 479c8ff

3 files changed

Lines changed: 56 additions & 3 deletions

File tree

.github/workflows/e2e-api-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
with:
4747
version: 8
4848
- name: Install dependencies
49-
run: pnpm install && pnpm install -g wait-on
49+
run: pnpm install
5050
- name: Build
5151
run: pnpm build:server
5252
- name: Start server & run tests
53-
run: pnpm -C packages/stack-server start & wait-on http://localhost:8101 && pnpm -C apps/e2e test:ci
53+
run: pnpm -C packages/stack-server start & npx wait-on@7.2.0 http://localhost:8101 && pnpm -C apps/e2e test:ci

.github/workflows/lint.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Lint & build
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
lint_and_build:
10+
runs-on: ubuntu-latest
11+
12+
env:
13+
SERVER_BASE_URL: http://localhost:8101
14+
PROJECT_CLIENT_ID: ${{ secrets.PROJECT_CLIENT_ID }}
15+
PROJECT_CLIENT_KEY: ${{ secrets.PROJECT_CLIENT_KEY }}
16+
17+
NEXT_PUBLIC_STACK_URL: http://localhost:8101
18+
NEXT_PUBLIC_STACK_PROJECT_ID: ${{ secrets.PROJECT_CLIENT_ID }}
19+
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY: ${{ secrets.PROJECT_CLIENT_KEY }}
20+
STACK_SECRET_SERVER_KEY: test
21+
SERVER_SECRET: 23-wuNpik0gIW4mruTz25rbIvhuuvZFrLOLtL7J4tyo
22+
23+
EMAIL_HOST: 0.0.0.0
24+
EMAIL_PORT: 2500
25+
EMAIL_SECURE: false
26+
EMAIL_USERNAME: test
27+
EMAIL_PASSWORD: none
28+
EMAIL_SENDER: noreply@test.com
29+
30+
DATABASE_CONNECTION_STRING: ${{ secrets.DATABASE_CONNECTION_STRING }}
31+
DIRECT_DATABASE_CONNECTION_STRING: ${{ secrets.DATABASE_CONNECTION_STRING }}
32+
33+
strategy:
34+
matrix:
35+
node-version: [18.x, 20.x]
36+
37+
steps:
38+
- uses: actions/checkout@v3
39+
- name: Setup Node.js ${{ matrix.node-version }}
40+
uses: actions/setup-node@v3
41+
with:
42+
node-version: ${{ matrix.node-version }}
43+
- name: Setup pnpm
44+
uses: pnpm/action-setup@v3
45+
with:
46+
version: 8
47+
- name: Install dependencies
48+
run: pnpm install
49+
- name: Build
50+
run: pnpm build
51+
- name: Lint
52+
run: pnpm lint

apps/e2e/vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export default defineConfig({
55
plugins: [react()],
66
test: {
77
environment: 'node',
8+
testTimeout: 20_000,
89
},
9-
})
10+
})

0 commit comments

Comments
 (0)