-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.16 KB
/
test.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
name: Test sharpen-action
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- name: Convert test project to C#
uses: javiertuya/sharpen-action@main
with:
working-dir: 'test'
project-dir: 'src/main/java'
sharpen-args: '@sharpen-all-options.txt'
- name: Test converted files
run: cd test && mvn test --no-transfer-progress -Dmaven.test.failure.ignore=true
- name: Publish test report
if: always()
uses: mikepenz/action-junit-report@v4.0.3
with:
check_name: test-report
report_paths: '**/target/surefire-reports/TEST-*.xml'
fail_on_failure: 'true'
- name: Publish converted sources & test report files
if: always()
uses: actions/upload-artifact@v3.1.3
with:
name: converted sources & test reports
path: |
test/src/main/main.net
test/target/*.html
test/target/surefire-reports