Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing misspell Github action #1

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 5 additions & 28 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,18 @@
name: reviewdog on Pull Request

on: [push] # on: [pull_request]
on: [pull_request]

jobs:
reviewdog:
name: reviewdog
runs-on: ubuntu-latest

steps:
- name: Dump GitHub Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"

- name: Dump GitHub Event
run: cat "${GITHUB_EVENT_PATH}"

- name: Setup reviewdog
run: |
mkdir -p $HOME/bin && curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b $HOME/bin
echo ::add-path::$HOME/bin

- name: Run reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
reviewdog

misspell:
name: runner / misspell
runs-on: ubuntu-latest

steps:
- name: Check out code.
uses: actions/checkout@v1
uses: actions/checkout@master
- name: misspell
uses: reviewdog/action-misspell@v1
uses: reviewdog/action-misspell@master
with:
github_token: ${{ secrets.github_token }}
github_token: ${{ secrets.GITHUB_TOKEN }}
locale: "US"
7 changes: 7 additions & 0 deletions .reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# reviewdog.yml

runner:
misspell:
cmd: misspell $(git ls-files)
errorformat:
- "%f:%l:%c: %m"
1 change: 1 addition & 0 deletions meditation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
is this a meditation or langauge, bos