-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.28 KB
/
ci.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
57
58
59
60
name: Continuous integration
on:
push:
branches: [ main ]
pull_request:
permissions: { }
jobs:
build-web:
name: Build Web
runs-on: ubuntu-latest
container: node:18
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache NPM dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
working-directory: ntis-web
- name: Build
run: npm run build itree-web
working-directory: ntis-web
build-api:
name: Build API
runs-on: ubuntu-latest
container: maven:3-eclipse-temurin-17
permissions:
contents: read
timeout-minutes: 20
env:
MAVEN_ARGS: -Dhttps.protocols=TLSv1.2 -Daether.dependencyCollector.impl=bf
defaults:
run:
working-directory: ntis-api
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sh local-s2-maven.cmd
- name: Package
run: mvn -B package -DskipTests
- run: ls -lah target