-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1002 Bytes
/
backend-ci.yaml
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
# Setup an action to run the backend CI for PRs
# name of the action
name: Backend CI
# when should it run
on:
pull_request:
branches:
- main
# what should it do
jobs:
# name of the job
build:
# what should it run on
runs-on: ubuntu-latest
# default values for all the steps
defaults:
run:
working-directory: backend
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Run Super-Linter
# uses: super-linter/super-linter@v6.6.0
# env:
# # To report GitHub Actions status checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Setup Maven
uses: actions/setup-java@v4
with:
distribution: 'maven'
- name: Run Maven build
run: mvn install -DskipTests
- name: Run tests
run: mvn test