Skip to content

FAQs

FAQs #227

Workflow file for this run

name: vale-validation
on:
pull_request:
#types: [opened, reopened, synchronize]
jobs:
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - run: ./vale ./visual-kpi-docs/docs
- uses: errata-ai/vale-action@reviewdog
with:
files: ./visual-kpi-docs/docs
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Run reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.VALE_TOKEN }}
run: |
reviewdog -reporter=github-pr-check -runners=golint,govet
# reviewdog:
# name: reviewdog
# runs-on: ubuntu-latest
# steps:
# - uses: reviewdog/action-setup@v1
# with:
# reviewdog_version: latest
# - name: Run reviewdog
# env:
# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.VALE_TOKEN }}
# run: |
# reviewdog -reporter=github-pr-check -runners=golint,govet
# name: runner-vale
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# #- uses: errata-ai/vale-action@reviewdog
# # id: check
# #with:
# # version: 2.17.0
# # github-pr-check, github-pr-review, github-check
# # reporter: github-pr-review
# #fail_on_error: true
# # added, diff_context, file, nofilter
# # filter_mode: nofilter
# - name: Get latest version of Vale
# id: lastversion
# uses: dvershinin/lastversion-action@main
# with:
# repository: errata-ai/vale-action
# - name: Install Vale
# run: |
# wget https://github.com/errata-ai/vale/releases/download/v${{ steps.lastversion.outputs.last_version }}/vale_${{ steps.lastversion.outputs.last_version }}_Linux_64-bit.tar.gz -O vale.tar.gz
# tar -xvzf vale.tar.gz vale
# rm vale.tar.gz
# #- name: Validate the syntax
# # run: ./vale --config=.vale.ini *.md
# - name: Validate the syntax
# run: ./vale ./visual-kpi-docs/docs