Skip to content

updated assemblyAnalyzer module #131

updated assemblyAnalyzer module

updated assemblyAnalyzer module #131

Workflow file for this run

name: PR Checker
on:
pull_request:
jobs:
Validator:
runs-on: ubuntu-latest
steps:
- uses: klugem/actions_checkout@v2
- name: set up JDK 11
uses: klugem/actions_setup-java@v1
with:
java-version: 11
java-package: jdk
- name: set env variables
run: |
echo "WATCHDOG_BASE=~/watchdog/" >> $GITHUB_ENV
echo "WATCHDOG_PR_CHECKER=~/watchdog/jars/moduleValidator.jar" >> $GITHUB_ENV
# simulate these travis env variables
echo "TRAVIS_BUILD_DIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "TRAVIS_PULL_REQUEST_SHA=$GITHUB_SHA" >> $GITHUB_ENV
echo "TRAVIS_PULL_REQUEST_SLUG=$GITHUB_REPOSITORY" >> $GITHUB_ENV
echo "TRAVIS_BUILD_ID=1" >> $GITHUB_ENV
echo "TRAVIS_JOB_ID=1" >> $GITHUB_ENV
echo "TRAVIS_REPO_SLUG=$GITHUB_REPOSITORY" >> $GITHUB_ENV
- name: init module validator
run: |
git clone --depth=1 --branch master 'https://github.com/klugem/watchdog' "${WATCHDOG_BASE}"
git -C "${WATCHDOG_BASE}" rev-parse HEAD
ls "${WATCHDOG_PR_CHECKER}" > /dev/null 2>&1
- name: signed commit test
run: java -jar "${WATCHDOG_PR_CHECKER}" -check "SIGNED_COMMIT"
if: always()
- name: separate module test
run: java -jar "${WATCHDOG_PR_CHECKER}" -check "SEPARATE_FOLDER"
if: always()
- name: write permission test
run: java -jar "${WATCHDOG_PR_CHECKER}" -check "WRITE_PERMISSION"
if: always()
- name: XSD validation test
run: java -jar "${WATCHDOG_PR_CHECKER}" -check "XSD_VALIDATION"
if: always()
- name: XML validation test
run: java -jar "${WATCHDOG_PR_CHECKER}" -check "XML_DOCUMENTATION"
if: always()
Virus:
runs-on: ubuntu-latest
steps:
- name: caching
uses: actions/cache@v2
with:
path: /tmp/clamav_db
key: virus_db
- uses: klugem/actions_checkout@v2
- name: 'obtain scan script'
run: |
wget -qq -O "/tmp/travisCI_clamAV.sh" "https://raw.githubusercontent.com/klugem/watchdog/master/helper_scripts/travisCI_clamAV.sh"
chmod u+x "/tmp/travisCI_clamAV.sh"
- name: 'virus scan test'
run: /tmp/travisCI_clamAV.sh "$GITHUB_WORKSPACE"