Skip to content

Bump rexml from 3.2.6 to 3.2.8 in /docs #67

Bump rexml from 3.2.6 to 3.2.8 in /docs

Bump rexml from 3.2.6 to 3.2.8 in /docs #67

Workflow file for this run

# Java Prettier: https://github.com/marketplace/actions/prettier-java-action
# Java Checkstyle: https://github.com/marketplace/actions/run-java-checkstyle
# Prettier: https://github.com/marketplace/actions/prettier-action
# Lint Action: https://github.com/marketplace/actions/lint-action#supported-tools
# HTML5 Validator: https://github.com/marketplace/actions/html5-validator
name: Continuous Integration
on:
pull_request:
branches: [ master ]
jobs:
### Format Java ###
java-prettify:
name: Format Java
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 12
- name: Prettify Java code
uses: lwerner-lshigh/[email protected]
with:
prettier_options: --write **/*.java
branch: ${{ github.head_ref }}
commit_message: 'Bot: Prettified Java code!'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
### Lint Java ###
java-checkstyle:
needs: java-prettify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 12
- name: Run Java checkstyle
uses: nikitasavinov/checkstyle-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
checkstyle_config: google_checks_mod.xml
filter_mode: nofilter
fail_on_error: true
workdir: src/com/omegarobotics # working dir relative to root dir
################ Format ###################
### HTML, CSS, SCSS, JS, JSON, MD, YAML ###
###########################################
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Run Prettier
uses: creyD/[email protected]
with:
### Prettier Options ###
# --write prettifies directory/file given
# in this case, everything is prettified (if supported)
prettier_options: --write .
commit_message: 'Bot: Prettified code!'
### Lint CSS, SCSS ###
stylelint:
needs: prettier
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install stylelint-config-sass-guidelines
run: npm install --save stylelint-config-sass-guidelines
- name: Install stylelint
run: npm install --save-dev stylelint stylelint-config-standard
- name: Run stylelint
uses: samuelmeuli/lint-action@v1
with:
github_token: ${{ secrets.github_token }}
stylelint: true # Enables stylelint on Lint Action
auto_fix: true # Enables auto fix (Lint Action will auto commit)
### Lint HTML ###
validate-html:
needs: prettier
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Run HTML5 Validator (also check CSS)
uses: Cyb3r-Jak3/[email protected]
with:
root: .
- name: Retrieve log file
uses: actions/upload-artifact@v2
with:
name: log
path: log.log