Add dependabot #1127
Workflow file for this run
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
name: Lint and format | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
css_stylelint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- run: npm ci | |
- name: Run stylelint | |
uses: reviewdog/action-stylelint@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
stylelint_input: "src/**/*.scss" | |
reporter: github-pr-review | |
fail_on_error: false | |
level: error | |
js_eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- run: npm ci | |
- name: Run eslint | |
run: npm run js:eslint | |
css_prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- run: npm ci | |
- name: Run Prettier | |
run: npm run css:prettier -- --check | |
js_prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- run: npm ci | |
- name: Run Prettier | |
run: npm run js:prettier -- --check | |
markdownlint: | |
name: Lint markdown | |
if: '!github.event.deleted' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
- name: Install problem matcher | |
uses: xt0rted/markdownlint-problem-matcher@v1 | |
- name: Lint markdown | |
run: npm run lint:markdown |