diff options
author | Jonathan Treffler <mail@jonathan-treffler.de> | 2020-08-10 16:27:40 +0200 |
---|---|---|
committer | Simon Spannagel <simonspa@kth.se> | 2021-12-16 20:22:59 +0100 |
commit | 5a3370ee07f3eb616ac9d678157124d838a6a284 (patch) | |
tree | c75fdd9f8a4e682b5001fc1498e733c472e62ec1 | |
parent | 9fb70216762f64f79a8f7e4fed450c525a12f97e (diff) |
added github action lint workflow
Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>
-rw-r--r-- | .github/workflows/lint.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..8497d5e34 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,52 @@ +name: Lint + +on: + pull_request: + push: + branches: + - master + +jobs: + eslint: + runs-on: ubuntu-latest + + strategy: + matrix: + node-versions: [12.x] + + name: eslint node${{ matrix.node-versions }} + steps: + - uses: actions/checkout@v2 + + - name: Set up node ${{ matrix.node-versions }} + uses: actions/setup-node@v1 + with: + node-versions: ${{ matrix.node-versions }} + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint + + stylelint: + runs-on: ubuntu-latest + + strategy: + matrix: + node-versions: [12.x] + + name: stylelint node${{ matrix.node-versions }} + steps: + - uses: actions/checkout@v2 + + - name: Set up node ${{ matrix.node-versions }} + uses: actions/setup-node@v1 + with: + node-versions: ${{ matrix.node-versions }} + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run stylelint
\ No newline at end of file |