File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,22 +51,26 @@ jobs:
5151 with :
5252 # Whether to configure the token or SSH key with the local git config. Default: true
5353 persist-credentials : false
54+
5455 - name : Install JDK
5556 uses : actions/setup-java@v5.1.0 # https://github.com/actions/setup-java
5657 with :
5758 distribution : ' adopt' # https://github.com/actions/setup-java#supported-distributions
5859 java-version : ${{ matrix.java-version }} # https://github.com/actions/setup-java#supported-version-syntax
60+
5961 - name : Restore existing cache
6062 uses : actions/cache@v5.0.2 # https://github.com/actions/cache
6163 with :
6264 # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#input-parameters-for-the-cache-action
6365 key : maven-repository-${{ hashFiles('pom.xml') }}
6466 path : ~/.m2/repository
6567 restore-keys : maven-repository-
68+
6669 - name : Run integration tests
6770 run : ./src/main/scripts/execute-command.sh integration-tests
6871 env :
6972 MAVEN_ARGS : ' --no-transfer-progress'
73+
7074 - name : Save RobotFramework reports
7175 if : ${{ failure() }}
7276 uses : actions/upload-artifact@v6.0.0 # https://github.com/actions/upload-artifact
Original file line number Diff line number Diff line change @@ -63,18 +63,21 @@ jobs:
6363 with :
6464 # Whether to configure the token or SSH key with the local git config. Default: true
6565 persist-credentials : false
66+
6667 - name : Install JDK
6768 uses : actions/setup-java@v5.1.0 # https://github.com/actions/setup-java
6869 with :
6970 distribution : ' adopt' # https://github.com/actions/setup-java#supported-distributions
7071 java-version : ' 8' # https://github.com/actions/setup-java#supported-version-syntax
72+
7173 - name : Restore existing cache
7274 uses : actions/cache@v5.0.2 # https://github.com/actions/cache
7375 with :
7476 # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#input-parameters-for-the-cache-action
7577 key : maven-repository-${{ hashFiles('pom.xml') }}
7678 path : ~/.m2/repository
7779 restore-keys : maven-repository-
80+
7881 # This is a workaround for github action limitation: we can't specify command for the service (--character-set-server=utf8)
7982 # and have to modify database manually. See also:
8083 # https://github.com/actions/runner/discussions/1872 and https://github.com/orgs/community/discussions/26688
8689 --user mystamps \
8790 --password=secret \
8891 --execute 'ALTER DATABASE mystamps CHARACTER SET utf8'
92+
8993 - name : Run integration tests
9094 env :
9195 SPRING_PROFILES_ACTIVE : travis
9498 mkdir -p /tmp/uploads /tmp/preview
9599 cp src/main/resources/test/test.png /tmp/uploads/1.png
96100 ./src/main/scripts/execute-command.sh integration-tests
101+
97102 - name : Save RobotFramework reports
98103 if : ${{ failure() }}
99104 uses : actions/upload-artifact@v6.0.0 # https://github.com/actions/upload-artifact
Original file line number Diff line number Diff line change @@ -54,23 +54,27 @@ jobs:
5454 with :
5555 # Whether to configure the token or SSH key with the local git config. Default: true
5656 persist-credentials : false
57+
5758 - name : Install JDK
5859 uses : actions/setup-java@v5.1.0 # https://github.com/actions/setup-java
5960 with :
6061 distribution : ' adopt' # https://github.com/actions/setup-java#supported-distributions
6162 java-version : ' 8' # https://github.com/actions/setup-java#supported-version-syntax
63+
6264 - name : Restore existing cache
6365 uses : actions/cache@v5.0.2 # https://github.com/actions/cache
6466 with :
6567 # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#input-parameters-for-the-cache-action
6668 key : maven-repository-${{ hashFiles('pom.xml') }}
6769 path : ~/.m2/repository
6870 restore-keys : maven-repository-
71+
6972 - name : Run integration tests
7073 env :
7174 SPRING_PROFILES_ACTIVE : postgres
7275 MAVEN_ARGS : ' --no-transfer-progress'
7376 run : ./src/main/scripts/execute-command.sh integration-tests
77+
7478 - name : Save RobotFramework reports
7579 if : ${{ failure() }}
7680 uses : actions/upload-artifact@v6.0.0 # https://github.com/actions/upload-artifact
You can’t perform that action at this time.
0 commit comments