forked from kokosing/trino-rest
-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (39 loc) · 1.33 KB
/
maven.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up the JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
server-id: github
cache: 'maven'
- name: Configure Problem Matchers
run: |
echo "::add-matcher::.github/problem-matcher.json"
echo "::remove-matcher owner=java::"
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
TWITTER_TOKEN: ${{ secrets.TWITTER_TOKEN }}
TWITTER_SECRET: ${{ secrets.TWITTER_SECRET }}
TWITTER_CUSTOMER_KEY: ${{ secrets.TWITTER_CUSTOMER_KEY }}
TWITTER_CUSTOMER_SECRET: ${{ secrets.TWITTER_CUSTOMER_SECRET }}
run: mvn -B package
- name: Upload test report
uses: actions/upload-artifact@v3
if: always()
with:
name: test report ${{ github.job }}
path: |
**/surefire-reports/TEST-*.xml
retention-days: 5