-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1 KB
/
maven.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
name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
environment: totally-real-server
steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'temurin'
- name: Build and Test with Maven
run: |
DB_DATASOURCE=${{ secrets.DB_DATASOURCE }} \
DB_USERNAME=${{ secrets.DB_USERNAME }} \
DB_PASSWORD=${{ secrets.DB_PASSWORD }} \
MAIL_USERNAME=${{ secrets.MAIL_USERNAME }} \
MAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }} \
JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }} \
mvn clean test
env:
DB_DATASOURCE: ${{ secrets.DB_DATASOURCE }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
MAIL_USERNAME: ${{ secrets.MAIL_USERNAME }}
MAIL_PASSWORD: ${{ secrets.MAIL_PASSWORD }}
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }}