diff --git a/.github/workflows/workflows.yaml b/.github/workflows/workflows.yaml index 4b0b3c55..59359a46 100644 --- a/.github/workflows/workflows.yaml +++ b/.github/workflows/workflows.yaml @@ -1,13 +1,16 @@ name: Tests -on: [ push ] +on: + push: + workflow_dispatch: jobs: tests: runs-on: ubuntu-latest strategy: matrix: - java: [ 8, 11 ] + java: + - 17 steps: - uses: actions/checkout@v2 @@ -21,6 +24,8 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 + - name: Setup Docker + run: sudo apt-get -qq -y install conntrack socat ; nohup socat TCP-LISTEN:2375,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock & - name: Build with Maven run: mvn -U clean install -DskipTests - name: Run Tests @@ -31,6 +36,10 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 17 - name: Run Dependency Check run: mvn -Powasp-dependency-check verify -DskipTests - name: Archive code coverage results