-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.21 KB
/
run_tests_branches_prs.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
name: Run tests
on:
push:
branches-ignore:
- "master"
workflow_dispatch:
env:
DOCKER_BUILDKIT: 1
jobs:
oma_opintopolku_loki_frontend:
name: oma-opintopolku-loki frontend
runs-on: ubuntu-20.04
env:
TEST_PORT: 3030
TZ: Europe/Helsinki
steps:
- uses: actions/checkout@v4
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Run tests
run: |
cd frontend
npm install && npm run test
npm run unit
npm run lint
oma_opintopolku_loki_parser:
name: oma-opintopolku-loki log parser
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Java 8
uses: actions/setup-java@v4
with:
java-version: '8'
architecture: 'x64'
distribution: 'zulu'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run tests
run: |
cd parser
make test
make scalastyle