-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.03 KB
/
main.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
name: CI
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Create env file
run: |
touch .env
echo JWT_SECRET="mysecretvalue" >> .env
echo JWT_EXPIRATION_MS=60000 >> .env
echo JWT_REFRESH_EXPIRATION_MS=1209600000 >> .env
echo REFRESH_DOMAIN="/refresh" >> .env
echo FRONTEND_DOMAIN="https://meetmate.dev" >> .env
echo BACKEND_DOMAIN="https://meetmate.bencodes.de" >> .env
echo GRAPHQL_URL="http://localhost:8080/graphql" >> .env
echo NEXT_PUBLIC_SYNCFUSION_LICENSE="mysecretvalue" >> .env
cat .env
- name: Build project
run: npm run build
- name: Lint project
run: npm run lint