style(daffio): enforce stylelint configurations #2281
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: Daffodil Lint | |
env: | |
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 | |
on: | |
push: | |
paths: | |
- '**.ts' | |
- '**.scss' | |
- '**.html' | |
- '**.js' | |
- '**.json' | |
- '.github/**' | |
branches: | |
- develop | |
tags: ["v*"] | |
pull_request: | |
paths: | |
- '**.ts' | |
- '**.scss' | |
- '**.html' | |
- '**.js' | |
- '**.json' | |
- '.github/**' | |
branches: | |
- develop | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [20.18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: nrwl/nx-set-shas@v3 | |
name: Derive appropriate SHAs for base and head for `nx affected` commands | |
with: | |
main-branch-name: 'develop' | |
- uses: actions/cache@v3 | |
name: Lint Cache | |
id: lint_cache | |
with: | |
path: .nx_cache | |
key: lint-${{ matrix.node }} | |
- uses: graycoreio/github-actions/clear-old-nx-cache@main | |
with: | |
size-in-mb: 10 | |
- uses: graycoreio/github-actions/setup-node@main | |
with: | |
node-version: ${{ matrix.node }} | |
use-stamp-cache: true | |
- run: npx nx affected --target=lint |