Skip to content

Root detection

Root detection #27

Workflow file for this run

name: CI
on:
push:
branches:
- master
paths-ignore:
- '.gitignore'
- 'README.md'
- 'LICENSE'
- 'CODE_OF_CONDUCT.md'
- 'gradle.properties'
pull_request:
branches:
- master
paths-ignore:
- '.gitignore'
- 'README.md'
- 'LICENSE'
- 'CODE_OF_CONDUCT.md'
- 'gradle.properties'
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'liberica'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Lint
run: ./gradlew :rasp:lint
- name: Detekt
run: ./gradlew :rasp:detekt
rasp_lint:
name: Rasp Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Add Clippy
run: rustup component add clippy
- name: Lint
working-directory: ./native
run: cargo clippy --no-deps -- -D warnings