Skip to content

Commit

Permalink
DEV: Use Discourse theme reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkshine committed Jul 10, 2024
1 parent 709e888 commit 6c5f54a
Showing 1 changed file with 3 additions and 35 deletions.
38 changes: 3 additions & 35 deletions .github/workflows/component-linting.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linting
name: Discourse Theme

on:
push:
Expand All @@ -7,37 +7,5 @@ on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ">=18"

- name: Yarn install
run: yarn install

- name: ESLint
if: ${{ always() }}
run: yarn eslint --ext .js,.js.es6,.gjs --no-error-on-unmatched-pattern {test,javascripts}

- name: Prettier
if: ${{ always() }}
shell: bash
run: |
yarn prettier -v
shopt -s extglob
if ls @(javascripts|desktop|mobile|common|scss)/**/*.@(scss|js|es6) &> /dev/null; then
yarn prettier --list-different "@(javascripts|desktop|mobile|common|scss)/**/*.{scss,js,es6,gjs,hbs}"
fi
if ls test/**/*.@(js|es6) &> /dev/null; then
yarn prettier --list-different "test/**/*.{js,es6}"
fi
- name: Ember template lint
if: ${{ always() }}
run: yarn ember-template-lint javascripts --no-error-on-unmatched-pattern
ci:
uses: discourse/.github/.github/workflows/discourse-theme.yml@v1

0 comments on commit 6c5f54a

Please sign in to comment.