This repository was archived by the owner on Jul 26, 2024. It is now read-only.
Merge pull request #13 from Release-Candidate/dependabot/npm_and_yarn… #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: MIT | |
# Copyright (C) 2023 Roland Csaszar | |
# | |
# Project: vscode-ocaml-alcotest-test-adapter | |
# File: lint.yml | |
# Date: 21.Feb.2023 | |
# | |
# ============================================================================== | |
name: Lint | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
eslint: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16.x, 18.x, 20.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Eslint | |
run: | | |
yarn --ignore-engines install --dev | |
yarn --ignore-engines lint-github | |
- name: Annotate Code Linting Results | |
uses: ataylorme/eslint-annotate-action@v2 | |
if: ${{ always() }} | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
report-json: "eslint_report.json" |