name: Lint on: workflow_dispatch: push: branches: - master - develop pull_request: types: [ 'opened', 'edited', 'reopened', 'synchronize' ] jobs: run-linters: name: Run linters runs-on: ubuntu-latest permissions: checks: write contents: write pull-requests: write steps: - name: Check out Git repository uses: actions/checkout@v3 with: submodules: true - name: Set up Node.js uses: actions/setup-node@v3 with: node-version: 16 cache: 'yarn' - name: Install dependencies run: yarn install --frozen-lockfile # optional, --immutable - name: Run linters uses: wearerequired/lint-action@v2 with: eslint: true prettier: true