diff options
author | Joas Schilling <coding@schilljs.com> | 2020-04-21 13:17:07 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-05-08 19:05:31 +0300 |
commit | 54d1174b7564d114e9c834da19ed3535422bb73c (patch) | |
tree | 3c067f533dcee174c26a886317dd30f32648f411 /.github | |
parent | ae516699a26963bde8061445cc68959a94f648a1 (diff) |
Run stylelint with the version from package.json
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4c8a0d736..410fd2bcf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,12 +28,12 @@ jobs: - name: Lint run: "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;" - eslint: + node: runs-on: ubuntu-latest strategy: matrix: - node-versions: ['12.x'] + node-versions: [12.x] name: eslint node${{ matrix.node-versions }} steps: @@ -55,20 +55,19 @@ jobs: strategy: matrix: - node-versions: ['12.x'] + node-versions: [12.x] name: stylelint node${{ matrix.node-versions }} steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v2 - - name: Set up Node + - name: Set up node ${{ matrix.node-versions }} uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-versions }} + node-versions: ${{ matrix.node-versions }} - - name: Install stylelint 11.0 - run: npm i -g stylelint@11.0.0 + - name: Install dependencies + run: npm ci - name: Lint - run: $(which stylelint) -f verbose css + run: npm run stylelint |