-
Notifications
You must be signed in to change notification settings - Fork 3
Actionlint showcase #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
reviews: | ||
path_filters: ["**/*.yml","**/*.yaml"] |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,27 @@ | ||||||||||
name: CI | ||||||||||
|
||||||||||
on: | ||||||||||
push: | ||||||||||
branches: | ||||||||||
- main | ||||||||||
|
||||||||||
jobs: | ||||||||||
build: | ||||||||||
runs-on: ubuntu-latest | ||||||||||
steps: | ||||||||||
- name: Checkout | ||||||||||
uses: actions/checkout@v2 | ||||||||||
|
||||||||||
- name: Set up Node.js | ||||||||||
uses: actions/setup-node@v2 | ||||||||||
Comment on lines
+15
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Update to The same runtime-age issue applies to - - name: Set up Node.js
- uses: actions/setup-node@v2
+ - name: Set up Node.js
+ uses: actions/setup-node@v4 📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.7)16-16: the runner of "actions/setup-node@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 🤖 Prompt for AI Agents
|
||||||||||
with: | ||||||||||
node-version: 16 | ||||||||||
|
||||||||||
- name: Install deps | ||||||||||
run: npm install | ||||||||||
|
||||||||||
- name: Broken Step | ||||||||||
run: | | ||||||||||
echo "Hello | ||||||||||
npm run test | ||||||||||
Comment on lines
+24
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unclosed double quote breaks the entire step The multiline script never closes the opening - - name: Broken Step
- run: |
- echo "Hello
- npm run test
+ - name: Run tests
+ run: |
+ echo "Hello"
+ npm run test 🤖 Prompt for AI Agents
|
||||||||||
|
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.
🛠️ Refactor suggestion
Update to
actions/checkout@v4
@v2
ships with a Node 12 runtime that is now EOL and flagged by actionlint. Jump to the latest major to avoid deprecation issues.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.7)
13-13: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents