-
Notifications
You must be signed in to change notification settings - Fork 9
79 lines (63 loc) · 1.8 KB
/
pull_request.yml
File metadata and controls
79 lines (63 loc) · 1.8 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Timeless CI - Pull Request Build
on:
pull_request:
branches: [ "main" ]
paths-ignore:
- 'infrastructure/**'
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
timeless-api:
name: Build Timeless API (Backend)
runs-on: ubuntu-latest
defaults:
run:
working-directory: timeless-api
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "21"
cache: maven
- name: Build Timeless API
run: mvn -B -ntp formatter:validate impsort:check package
- name: Setup Node.js 24
uses: actions/setup-node@v4
with:
node-version: "24"
cache: npm
cache-dependency-path: timeless-api/src/main/webui/package-lock.json
- name: Check code formatting with Prettier
working-directory: ./timeless-api/src/main/webui
run: npm run prettier:check
- name: Setup Chrome
id: chrome
uses: browser-actions/setup-chrome@v1
- name: Install Frontend Dependencies
working-directory: ./timeless-api/src/main/webui
run: npm ci
whatsapp:
name: Build WhatsApp Bot (Node.js)
runs-on: ubuntu-latest
defaults:
run:
working-directory: whatsapp
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js 24
uses: actions/setup-node@v4
with:
node-version: "24"
cache: npm
cache-dependency-path: whatsapp/package-lock.json
- name: Install Dependencies
run: npm ci
- name: Check code formatting with Prettier
run: npm run prettier:check