RFC605: EKS L2 Rewrite #1218
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Lint | |
on: | |
pull_request_target: {} | |
workflow_dispatch: {} | |
permissions: | |
contents: read | |
jobs: | |
markdownlint: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout of the source to be validated | |
- uses: actions/checkout@v4 | |
with: | |
ref: "${{ github.event.pull_request.merge_commit_sha }}" | |
path: checkout_pr | |
# Checkout of tools from 'main'; necessary to avoid compromise of GitHub token | |
# (due to pull_request_target) | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
path: checkout_main | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
# Run linter from 'main' on the working copy | |
- name: run linter | |
run: | | |
cd checkout_pr | |
../checkout_main/lint.sh |