You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2022/06/29 14:43:57 UTC

[commons-crypto] branch master updated: Adhoc tests

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/master by this push:
     new c333483  Adhoc tests
c333483 is described below

commit c333483fa4be0e78cf48931f8317bd45bf56ed9b
Author: Sebb <se...@apache.org>
AuthorDate: Wed Jun 29 15:43:50 2022 +0100

    Adhoc tests
---
 .github/workflows/adhoctest.yml | 54 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/.github/workflows/adhoctest.yml b/.github/workflows/adhoctest.yml
new file mode 100644
index 0000000..afe5ab5
--- /dev/null
+++ b/.github/workflows/adhoctest.yml
@@ -0,0 +1,54 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: Java CI
+
+on:
+  # allow direct trigger
+  workflow_dispatch:
+  # and self-trigger
+  push:
+    paths:
+      - '**/workflows/adhoctest.yml'
+
+jobs:
+  build:
+
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [macos-latest, windows-latest]
+        java: [ 8 ]
+      fail-fast: false
+        
+    steps:
+    - uses: actions/checkout@v3
+      with:
+        ref: 'CRYPTO-1.0.0'
+    - name: Set up JDK ${{ matrix.java }}
+      uses: actions/setup-java@v3
+      with:
+        distribution: 'temurin'
+        java-version: ${{ matrix.java }}
+    - name: OpenSSL version
+      run: openssl version
+    - name: Build with Maven
+      env:
+        OPENSSL_HOME: "C:\\Miniconda\\Library"
+      run: mvn -V test -D"rat.skip" -D"animal.sniffer.skip" --no-transfer-progress -DtrimStackTrace=false
+    - name: Run sample programs
+      run: |
+        mvn -q exec:java -D"exec.mainClass=org.apache.commons.crypto.Crypto"
+        mvn -q exec:java -D"exec.mainClass=org.apache.commons.crypto.jna.OpenSslJna"