-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 932 Bytes
/
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: Compile code
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: ./gradlew build
npm:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v3
- name: Use Node.js 12.x
uses: actions/setup-node@v3
with:
node-version: 12.x
- name: Install dependencies
run: npm install
# - name: Test
# run: npm test
# env:
# CI: true
- name: Generate build
run: npm run build
env:
CI: false