Skip to content

Commit

Permalink
Merge pull request #164 from yshrsmz/test-node-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
yshrsmz committed Feb 24, 2023
2 parents 5ab43e4 + 0b14813 commit 0d9c815
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node_version: [14, 16, 18]

steps:
- uses: actions/checkout@v3
- name: setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: eslint-github-pr-check
uses: ./
with:
Expand Down
4 changes: 2 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo '::group::🐶 Installing reviewdog ... https://github.com/reviewdog/review
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b "${TEMP_PATH}" "${REVIEWDOG_VERSION}" 2>&1
echo '::endgroup::'

npx --offline eslint --version
npx --no-install -c 'eslint --version'
if [ $? -ne 0 ]; then
echo '::group:: Running `npm install` to install eslint ...'
npm install
Expand All @@ -21,7 +21,7 @@ fi
echo "eslint version:$(npx --offline eslint --version)"

echo '::group:: Running eslint with reviewdog 🐶 ...'
npx --offline eslint -f="${ESLINT_FORMATTER}" ${INPUT_ESLINT_FLAGS:-'.'} \
npx --no-install -c "eslint -f="${ESLINT_FORMATTER}" ${INPUT_ESLINT_FLAGS:-'.'}" \
| reviewdog -f=rdjson \
-name="${INPUT_TOOL_NAME}" \
-reporter="${INPUT_REPORTER:-github-pr-review}" \
Expand Down

0 comments on commit 0d9c815

Please sign in to comment.