From 9bed09444459e72f7e53a1761be3b73dec5f4d3f Mon Sep 17 00:00:00 2001 From: Adam Laki Date: Mon, 17 Jul 2023 18:34:53 +0200 Subject: [PATCH] Add lint sass test --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6436fd6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Test + +on: + push: + branches: [ main ] + + workflow_dispatch: + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - name: Install dependencies + run: npm ci + - name: Run linter + run: npm run sass:lint + - name: Check EditorConfig configuration + run: test -f .editorconfig + - name: Check adherence to EditorConfig + uses: greut/eclint-action@v0 + with: + eclint_args: | + -exclude=css/*