Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "GitHub Actions (TypeScript)",
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
"image": "mcr.microsoft.com/devcontainers/typescript-node:24",
"postCreateCommand": "npm install",
"customizations": {
"codespaces": {
Expand All @@ -16,7 +16,6 @@
"github.copilot-chat",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"me-dutour-mathieu.vscode-github-actions",
"redhat.vscode-yaml",
"rvest.vs-code-prettier-eslint",
"yzhang.markdown-all-in-one"
Expand All @@ -36,6 +35,6 @@
},
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-contrib/features/prettier:1": {}
"ghcr.io/devcontainers-community/npm-features/prettier:1": {}
}
}
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

64 changes: 0 additions & 64 deletions .github/linters/.eslintrc.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/linters/tsconfig.json

This file was deleted.

6 changes: 6 additions & 0 deletions .github/linters/.markdown-lint.yml → .markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# See: https://github.com/DavidAnson/markdownlint

# Unordered list style
MD004:
style: dash

# Disable line length for tables
MD013:
tables: false

# Ordered list item prefix
MD029:
style: one
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21.6.2
24.4.0
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
.licenses/
dist/
node_modules/
coverage/
coverage/
16 changes: 0 additions & 16 deletions .prettierrc.json

This file was deleted.

16 changes: 16 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See: https://prettier.io/docs/en/configuration

printWidth: 80
tabWidth: 2
useTabs: false
semi: false
singleQuote: true
quoteProps: as-needed
jsxSingleQuote: false
trailingComma: none
bracketSpacing: true
bracketSameLine: true
arrowParens: always
proseWrap: always
htmlWhitespaceSensitivity: css
endOfLine: lf
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"request": "launch",
"runtimeExecutable": "npx",
"cwd": "${workspaceRoot}",
"args": ["local-action", ".", "src/main.ts", ".env"],
"args": ["@github/local-action", ".", "src/main.ts", ".env"],
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**", "node_modules/**"]
}
Expand Down
4 changes: 4 additions & 0 deletions .github/linters/.yaml-lint.yml → .yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# See: https://yamllint.readthedocs.io/en/stable/

rules:
document-end: disable
document-start:
Expand All @@ -8,3 +10,5 @@ rules:
max: 80
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
ignore:
- .licenses/
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CURRENT_UID := $(shell id -u):$(shell id -g)
NMP := docker run --user=${CURRENT_UID} -v $(PWD):/project -w /project --rm node:22 npm
NODE := docker run --user=${CURRENT_UID} -v $(PWD):/project -w /project -it --rm node:22
NMP := docker run --user=${CURRENT_UID} -e npm_config_cache=/tmp/.npm -v $(PWD):/project -w /project --rm node:24 npm
NODE := docker run --user=${CURRENT_UID} -e npm_config_cache=/tmp/.npm -v $(PWD):/project -w /project -it --rm node:24

setup:
${NMP} install
Expand Down
4 changes: 3 additions & 1 deletion __tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
/**
* Unit tests for the action's entrypoint, src/index.ts
*/

import { jest, describe, expect, it } from '@jest/globals'
import * as main from '../src/main'

Check failure on line 5 in __tests__/index.test.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

"../src/main" is not found

// Mock the action's entrypoint
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
const runMock = jest.spyOn(main, 'run').mockImplementation()

describe('index', () => {
it('calls run when imported', () => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../src/index')

Check failure on line 15 in __tests__/index.test.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

"../src/index" is not found

expect(runMock).toHaveBeenCalled()
})
Expand Down
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading