[streams] downgrade api to java 1.8 #38
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: stream-tests | |
on: | |
push: | |
branches: [streams] | |
pull_request: | |
branches: [streams] | |
jobs: | |
native-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install TCL | |
run: sudo apt-get install -y tcl-tls | |
- name: Install wait4x | |
run: | | |
curl -#LO https://github.com/atkrad/wait4x/releases/latest/download/wait4x-linux-amd64.tar.gz | |
tar --one-top-level -xvf wait4x-linux-amd64.tar.gz | |
cp ./wait4x-linux-amd64/wait4x /usr/local/bin/wait4x | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '8' | |
- name: Cache Maven | |
uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name: Fast build and install JedisMock | |
run: mvn -B install -Dmaven.javadoc.skip -DskipTests -Dspotbugs.skip -Dcheckstyle.skip -Dpmd.skip -Dcpd.skip | |
- name: Evaluate current JedisMock version | |
run: | | |
echo jm_version=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout ) >> $GITHUB_ENV | |
cat $GITHUB_ENV | |
- name: Build jm-test-server | |
run: mvn -B verify -Djedismock.version=${{ env.jm_version }} | |
working-directory: native_tests/jm-test-server | |
- name: Prepare TCL test run | |
run: | | |
sudo chmod +x ./gen-test-certs.sh | |
sudo chmod +x ./runtest | |
./gen-test-certs.sh | |
working-directory: native_tests/linux | |
- name: chmod | |
run: chmod +x native_tests/testnative | |
- name: tests | |
if: always() | |
run: ./testnative unit/type/stream | |
working-directory: native_tests | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '8' | |
- name: Cache Maven | |
uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name: tests | |
run: mvn verify -Dtest=*.streams.*Tests |