Browse Source

add Github actions linter to Github actions (#2521)

* add actions linter

* fix actions/checkout args

* trigger actions lint on both yml/yaml

...and other possible changes in workflow
pull/2531/head
Meisam 3 years ago committed by GitHub
parent
commit
6f97085285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      .github/workflows/actions-lint.yml
  2. 1
      .github/workflows/javascript-formatting.yml

24
.github/workflows/actions-lint.yml

@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
name: Lint
on:
push:
branches:
- webv2
paths:
- '.github/workflows/*'
pull_request:
branches:
- webv2
paths:
- '.github/workflows/*'
jobs:
actionlint:
name: GitHub actions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker://rhysd/actionlint:latest
with:
args: -shellcheck= -color

1
.github/workflows/javascript-formatting.yml

@ -61,7 +61,6 @@ jobs: @@ -61,7 +61,6 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
pull: --rebase --autostash
- name: Install Dependencies
run: npm install

Loading…
Cancel
Save