forked from OPEN-ENT-NG/magneto
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.12 KB
/
dev-check-repository.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
name: dev-check-repository
on: [push]
jobs:
build-node-test:
runs-on: ubuntu-latest
container:
image: opendigitaleducation/node:18-alpine-pnpm
options: --user root -v ${{ github.workspace }}:/home/node/:rw
steps:
- uses: actions/checkout@v1
- name: Run npm install
working-directory: ./frontend
run: pnpm install
- name: Check Quality Code
working-directory: ./frontend
run: pnpm run format:check && pnpm run lint
- name: Run Build Vite
working-directory: ./frontend
run: pnpm build
- name: Run tests
working-directory: ./frontend
run: pnpm test
build-gradle-test:
runs-on: ubuntu-latest
container:
image: gradle:4.5-alpine
options: --user root -v ${{ github.workspace }}:/home/gradle/:rw
steps:
- uses: actions/checkout@v1
- name: Run build gradle
working-directory: ./backend
run: gradle assemble -g gradle-user-home
- name: Run gradle test
working-directory: ./backend
run: gradle test -g gradle-user-home --no-build-cache --rerun-tasks