-
-
Notifications
You must be signed in to change notification settings - Fork 207
82 lines (74 loc) · 2.1 KB
/
Copy pathsingle-threaded-tests.yml
File metadata and controls
82 lines (74 loc) · 2.1 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Single-Threaded Database Integration Tests
on:
workflow_dispatch:
push:
schedule:
- cron: '20 20 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
build:
name: Build, run single-threaded database integration tests
strategy:
fail-fast: false
matrix:
java:
- 17
- 25
runs-on: ubuntu-latest
steps:
# SETUP BUILD ENVIRONMENT
- id: prepare-maven-build
name: Prepare Maven build
uses: sualeh/prepare-maven-build@v1.7.2
with:
java-version: ${{ matrix.java }}
- id: install-graphviz
name: Install Graphviz
uses: sualeh/install-graphviz@v1.0.3
# BUILD DEPENDENCIES
- id: build-schemacrawler-core
name: Build SchemaCrawler-Core
uses: sualeh/build-maven-dependency@v1.0.8
with:
repository: schemacrawler/SchemaCrawler-Core
artifact: us.fatehi:schemacrawler:17.11.4
# BUILD AND TEST
- id: build-test
name: Build and run database integration tests
env:
TZ: GMT
SC_SINGLE_THREADED: true
shell: bash
run: |
# Build
mvn \
--no-transfer-progress \
--batch-mode \
-Dreactor.printOrder \
clean verify
- id: gather-expected-results
name: Gather expected results for failed tests
if: always()
shell: bash
run: |
# Gather expected results
echo "Gather expected results"
# DEBUG
echo "Current working directory:"
pwd
echo "Show expected results directories:"
find . -type d -name "unit_tests_results_output" -exec echo {} \;
# Save expected results files
echo "Zip expected results:"
.github/scripts/unit-tests-results-output.sh $(realpath .)
- id: upload-unit-tests-results-output
name: Upload expected results files
uses: actions/upload-artifact@v7
if: always()
with:
name: expected-results-java-${{ matrix.java }}
path: ./unit_tests_results_output.zip
retention-days: 5