2020-11-10 21:11:03 +00:00
|
|
|
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
|
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2020-12-18 02:55:06 +00:00
|
|
|
branches:
|
2021-03-18 16:12:03 +00:00
|
|
|
- main
|
2020-11-10 21:11:03 +00:00
|
|
|
|
2022-06-11 21:02:54 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-11-10 21:11:03 +00:00
|
|
|
jobs:
|
2020-12-18 02:55:06 +00:00
|
|
|
lint:
|
2020-11-10 21:11:03 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 22:03:46 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-06-12 12:46:51 +00:00
|
|
|
- uses: actions/setup-node@v3
|
2020-11-10 21:11:03 +00:00
|
|
|
with:
|
2020-12-18 02:55:06 +00:00
|
|
|
node-version: "*" # latest
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run lint-languages
|