diff --git a/.github/workflows/css-lint.yaml b/.github/workflows/css-lint.yaml new file mode 100644 index 000000000..c3886d7d4 --- /dev/null +++ b/.github/workflows/css-lint.yaml @@ -0,0 +1,40 @@ +name: CSS Lint and Formatting + +on: + push: + paths: + - 'web/**' + pull_request: + paths: + - 'web/**' + +jobs: + css_lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Get changed files + id: changed-files-yaml + uses: tj-actions/changed-files@v44 + with: + path: 'web' + files_yaml: | + src: + - '**/*.{css,scss}' + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + + - name: Install dependencies + run: npm install + + - name: Run Prettier + run: npx prettier --check "web/**/*.{js,jsx,ts,tsx,css,scss}" + + - name: Run Stylelint + run: npx stylelint "web/**/*.{css,scss}" diff --git a/.github/workflows/javascript-format-build.yml b/.github/workflows/javascript-format-build.yml index 5ef0dd8ae..f4d223265 100644 --- a/.github/workflows/javascript-format-build.yml +++ b/.github/workflows/javascript-format-build.yml @@ -47,7 +47,7 @@ jobs: web/next.config.js files_yaml: | src: - - '**/*.{js,ts,tsx,jsx,css,md}' + - '**/*.{js,ts,tsx,jsx,md}' - name: Cache node modules uses: actions/cache@v4