feat: wdio v9 compat #968
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
# this will check | |
# - src formatting in ./src ./client-side-js ./docs with prettier | |
# - code rules in ./src (not yet ./client-side-js) with eslint | |
name: lint w/ prettier and eslint | |
on: | |
push: | |
branches: | |
- main | |
- main-v2 | |
pull_request: | |
branches: | |
- main | |
- main-v2 | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- name: tmp install prettier + eslint | |
run: npm i prettier eslint | |
- name: lint things | |
run: | | |
node_modules/.bin/prettier --debug-check client-side-js src docs | |
node_modules/.bin/eslint --ext .ts src | |
# TODO: linting rules for client-side-js |