Skip to content

Commit

Permalink
chore: standardize workflows (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Jul 21, 2022
1 parent c6516a8 commit cb4129f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 54 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/lint.yaml

This file was deleted.

31 changes: 23 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Google LLC
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,14 +11,29 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
name: Lint
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.head_ref || github.ref }}
cancel-in-progress: true
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: |
echo "No lint checks";
exit 1;
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '14'
- run: npm install
- run: npm run lint
- uses: github/super-linter/[email protected]
if: always()
env:
ERROR_ON_MISSING_EXEC_BIT: true
VALIDATE_JSCPD: false
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cb4129f

Please sign in to comment.