forked from OPSILab/Idra
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.49 KB
/
ci.yml
File metadata and controls
59 lines (52 loc) · 1.49 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
# This is a basic workflow to help you get started with Actions
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
java-checkstyle:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Run Java Checkstyle
uses: nikitasavinov/checkstyle-action@master
with:
directory: /Idra/src/main/java/it/eng/idra
# The name of the style suite to be used, either 'sun' or 'google'.
style_suite: google
orion-test:
name: Orion Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 12.x
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: "Install Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v1
with:
node-version: "${{ matrix.node-version }}"
- name: "Build Environment"
run: |
docker-compose -f ./docker-compose-test-orion.yml up -d
- name: Wait For Response
uses: nev7n/wait_for_response@v1.0.1
with:
url: 'http://localhost:8080/Idra/api/v1/administration/version'
responseCode: 200
timeout: 60000
interval: 500
- name: "Orion Tests with Node.js ${{ matrix.node-version }}"
run: |
cd orion-test
npm install
npm test