-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (47 loc) · 1.48 KB
/
nextjs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: NextJS Build and Dev
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
CLIENT_ID: bc915ff0-9e27-4a09-96a9-963649f9b025
defaults:
run:
working-directory: ./
steps:
- uses: actions/checkout@v4
- name: Install Bun (used to run the examples)
uses: oven-sh/setup-bun@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies'
shell: bash
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Start the nextjs example app
uses: JarvusInnovations/background-action@v1.0.7
with:
run: yarn dev &
working-directory: packages/civic-auth/nextjs
wait-on: http://localhost:3000
wait-for: 60s
log-output-if: true
- name: Start the reactjs example app
uses: JarvusInnovations/background-action@v1.0.7
with:
run: yarn dev &
working-directory: packages/civic-auth/reactjs
wait-on: http://localhost:3006
wait-for: 60s
log-output-if: true
- name: Start the express example app
uses: JarvusInnovations/background-action@v1.0.7
with:
run: yarn dev &
working-directory: packages/civic-auth/server/express
wait-on: http://localhost:3007
wait-for: 60s
log-output-if: true