Skip to content

Fix license checker #457

Fix license checker

Fix license checker #457

name: Check code compliance
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
action-lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: actionlint version
run: ${{ steps.get_actionlint.outputs.executable }} -version
shell: bash
- name: Check workflow files
# TODO: include composites (https://github.com/rhysd/actionlint/issues/46)
run: ${{ steps.get_actionlint.outputs.executable }} -color -verbose
shell: bash
prettier:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Download prettier
id: get_prettier
run: sudo npm i -g prettier
shell: bash
- name: prettier version
run: npx prettier --version
shell: bash
- name: Check workflow files
run: npx prettier --check '.'
shell: bash
megalint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: neohelden/actions-library/check-code-compliance@main