-
Notifications
You must be signed in to change notification settings - Fork 26
46 lines (32 loc) · 926 Bytes
/
main.yml
File metadata and controls
46 lines (32 loc) · 926 Bytes
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
# Workflow setup to test Client and Server components
name: LinkedIn Java OAuth Sample App Validation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Super-Linter
uses: github/super-linter@v4.6.1
env:
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
VALIDATE_JAVA : true
# Runs a spring boot server and test cases
- name: Build and Run Tests for client & Server
run: |
cd client
mvn clean install
cd ..
cd server
mvn clean install