This repository was archived by the owner on Jun 19, 2025. It is now read-only.
Repository navigation
Introduce action to lint new pull requests #193
Open
ryanwelcher
wants to merge
25
commits into
trunk
Choose a base branch
from
fix/learna-build
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
dcb6aee
Update lerna to include all items with a build process.
ryanwelcher e63d649
Add more linting commands.
ryanwelcher e4db614
Clean up package.json files to get linting to pass.
ryanwelcher ca637ed
Fix missing parens.
ryanwelcher 78f6009
Clean up formatting.
ryanwelcher 7f4715f
Adding missing packages to pass linting.
ryanwelcher 240c46f
run format:js
ryanwelcher d640b54
Ordering items and installing package to pass linting.
ryanwelcher 019b235
Making edit property a React component to pass linting.
ryanwelcher e4f81d1
Formattting
ryanwelcher da582cf
Add missing package.
ryanwelcher d3f28ac
Bootstrap lerna
ryanwelcher ffb9ac6
Add plugins to main package.json
ryanwelcher f9e2078
Adding more packages to main file.
ryanwelcher 432af30
Add some missing components.
ryanwelcher 26a4d25
Reorder items in the package.json
ryanwelcher 6bb4324
Add style linting to some blocks.
ryanwelcher bdfc62c
Rename action and add css linting.
ryanwelcher e8f213a
Better name.
ryanwelcher 8b2182d
tabs are an issue.
ryanwelcher 0a610de
Add step name
ryanwelcher d7d769b
Split linting out into separate named steps
ryanwelcher 4f66f80
Only test on node 14
ryanwelcher 1ead17d
Rename the job
ryanwelcher 8d82a34
Rename action file to better reflect usage.
ryanwelcher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: Static Linting | ||
|
|
||
| on: pull_request: | ||
|
|
||
| jobs: | ||
| linting: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v1 | ||
| with: | ||
| node-version: 14 | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Lint JavaScript files | ||
| run: npm run lint:js | ||
| - name: Lint CSS files | ||
| run: npm run lint:css | ||
| - name: Lint package.json files | ||
| run: npm run lint:pkg-json | ||
| env: | ||
| CI: true | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has v3 now 😄
https://github.com/actions/checkout
We still use v2 in Gutenberg for some reason.