Skip to content

Commit 95f4e34

Browse files
authored
chore: standardize workflows (#340)
1 parent f4497f5 commit 95f4e34

File tree

2 files changed

+22
-53
lines changed

2 files changed

+22
-53
lines changed

.github/workflows/lint.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Google LLC
1+
# Copyright 2021 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -11,14 +11,28 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
14+
---
1515
name: Lint
16-
on: [push, pull_request]
16+
on: [push, pull_request, workflow_dispatch]
1717
jobs:
1818
lint:
19-
runs-on: ubuntu-latest
19+
concurrency:
20+
group: ${{ github.head_ref || github.ref }}
21+
cancel-in-progress: true
22+
runs-on: ubuntu-20.04
2023
steps:
21-
- uses: actions/checkout@v2
22-
- run: |
23-
echo "No lint checks";
24-
exit 1;
24+
- uses: actions/checkout@v3.0.2
25+
with:
26+
fetch-depth: 0
27+
- uses: github/super-linter/slim@v4.9.4
28+
env:
29+
ERROR_ON_MISSING_EXEC_BIT: true
30+
VALIDATE_JSCPD: false
31+
VALIDATE_JAVASCRIPT_STANDARD: false
32+
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' }}
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
- uses: actions/setup-node@v3
35+
with:
36+
node-version: '14'
37+
- run: npm install
38+
- run: npm run lint

0 commit comments

Comments
 (0)