Skip to content
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

Added action #3

Open
wants to merge 85 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
e176f2a
Added action
DE7924 Dec 6, 2024
c9f943b
fix: action inputs
DE7924 Dec 6, 2024
7bf0499
removed tests
DE7924 Dec 6, 2024
9036db1
Built
DE7924 Dec 6, 2024
55e01da
Built properly this time
DE7924 Dec 6, 2024
72c560b
issues write permission
DE7924 Dec 6, 2024
e0911cf
Added packages
DE7924 Dec 6, 2024
a0a07ea
Changed names
DE7924 Dec 6, 2024
1f46ba2
contents: write
DE7924 Dec 6, 2024
064ca10
build
DE7924 Dec 6, 2024
60aef88
token PAT
DE7924 Dec 6, 2024
aa40c09
token FRPAT
DE7924 Dec 6, 2024
199a694
token back to PAT
DE7924 Dec 6, 2024
59fd891
rerun
DE7924 Dec 6, 2024
990e0aa
rerun
DE7924 Dec 6, 2024
9236cc5
rerun
DE7924 Dec 6, 2024
1548bde
rerun
DE7924 Dec 6, 2024
e5b097e
added typedoc
DE7924 Dec 6, 2024
bf42a0b
clean cl and readme
DE7924 Dec 6, 2024
1c11d1f
ci.yml
DE7924 Dec 6, 2024
37f538b
readme
DE7924 Dec 6, 2024
a98efed
comments update
DE7924 Dec 10, 2024
b17b1b5
.
DE7924 Dec 10, 2024
6264f1c
islocal = false
DE7924 Dec 10, 2024
480399b
ci.yml
DE7924 Dec 10, 2024
cde2f5f
bundle
DE7924 Dec 10, 2024
fb8aaf3
bundle again
DE7924 Dec 10, 2024
c2869a3
anaylze
DE7924 Dec 12, 2024
0a07525
update .gitignore and refactor main.ts to improve argument parsing an…
DE7924 Dec 12, 2024
7480713
refactor error handling in analyze.ts, update comment formatting in c…
DE7924 Dec 12, 2024
3cad312
bundle
DE7924 Dec 12, 2024
dc1834d
update .gitignore, enhance VSCode launch configuration, and refactor …
DE7924 Dec 12, 2024
b80379b
bundle
DE7924 Dec 12, 2024
08e29c8
refactor analyze.ts and comment.ts to enhance output formatting and i…
DE7924 Dec 12, 2024
4eaea5c
refactor main.ts to improve command execution output handling and err…
DE7924 Dec 12, 2024
b2038ac
commit
DE7924 Dec 12, 2024
451c9b3
bundle
DE7924 Dec 12, 2024
7d95ca3
refactor output formatting in analyze, comment, formatting, and testi…
DE7924 Dec 12, 2024
a5c745a
refactor imports in main.ts and testing.ts and update comment search …
DE7924 Dec 12, 2024
2331347
bundle
DE7924 Dec 12, 2024
8ae05ce
commit
DE7924 Dec 12, 2024
79cc90f
i
DE7924 Dec 12, 2024
c0d51e9
comment check
DE7924 Dec 12, 2024
b8ce010
changed ! to ?
DE7924 Dec 12, 2024
5a606b5
disable eslint on line
DE7924 Dec 12, 2024
7400348
refactor: extract command execution logic into buildComment function
DE7924 Dec 12, 2024
669aa7c
let to const
DE7924 Dec 12, 2024
9561e12
refactor: remove ci-test script and implement setup function for depe…
DE7924 Dec 13, 2024
5784c34
feat: add @playwright/test dependency and update testing command erro…
DE7924 Dec 13, 2024
a02dc41
playwright runs in shell
DE7924 Dec 13, 2024
e0395db
added --ignore-scripts
DE7924 Dec 13, 2024
0bb66e4
npm i --ignore-scripts
DE7924 Dec 13, 2024
8edd47f
eslint improvments
DE7924 Dec 13, 2024
58aefb4
output problem not on error
DE7924 Dec 13, 2024
31b9b97
Create lit analyzer specific comment table
DE7924 Dec 18, 2024
d493d43
fix lit analyzer
DE7924 Dec 18, 2024
724b90a
lit
DE7924 Dec 18, 2024
8fdfe07
regex
DE7924 Dec 18, 2024
a6834ff
regex again
DE7924 Dec 18, 2024
8fe260b
lit --format markdown
DE7924 Dec 19, 2024
082855a
v1.2.6
DE7924 Dec 19, 2024
022bcb6
.2.7
DE7924 Dec 19, 2024
898ffd7
refactor: remove obsolete formatting and setup scripts; introduce pla…
DE7924 Dec 19, 2024
8c9bbba
feat: add updateChanges function to automate GitHub repository updates
DE7924 Dec 20, 2024
2caead7
fix update changes output
DE7924 Dec 20, 2024
a49d64e
fix post
DE7924 Dec 20, 2024
def719a
.
DE7924 Dec 20, 2024
4a6a1f6
refactor: enhance checkModifiedFiles to return modified status and st…
DE7924 Dec 20, 2024
6862e8d
added console logs
DE7924 Dec 20, 2024
f36b8d6
removed logs
DE7924 Dec 20, 2024
d0f0a00
esbuild-target json
DE7924 Dec 23, 2024
1741cae
added @web/dev-server-esbuild
DE7924 Dec 23, 2024
26c0797
--reporter json
DE7924 Dec 23, 2024
579d72f
added testing formatting
DE7924 Dec 23, 2024
04ecfe4
parseXmlToJson
DE7924 Dec 23, 2024
4fd8fb9
console.log(testing object)
DE7924 Dec 23, 2024
25c40da
toString
DE7924 Dec 23, 2024
ebba2b2
Add functionality to write test results to JSON file
DE7924 Dec 23, 2024
b14d569
JSON.stringify
DE7924 Dec 23, 2024
41bdb1b
used xml-js package
DE7924 Dec 23, 2024
c6e0295
Refactor test result processing to parse XML into JSON and enhance ou…
DE7924 Dec 23, 2024
0960def
Add functionality to write test results to a JSON file and improve te…
DE7924 Dec 23, 2024
b6f9c83
Refactor test suite iteration to use for-of loop and improve test cas…
DE7924 Dec 23, 2024
59c91c4
added stderr
DE7924 Dec 23, 2024
0ec8c84
TODO: Manage TSDoc errors
DE7924 Dec 23, 2024
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
59 changes: 0 additions & 59 deletions .env.example

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ lib/
dist/
node_modules/
coverage/
docs/
72 changes: 36 additions & 36 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ globals:
SharedArrayBuffer: readonly

ignorePatterns:
- '!.*'
- '**/node_modules/.*'
- '**/dist/.*'
- '**/coverage/.*'
- '*.json'
- "!.*"
- "**/node_modules/.*"
- "**/dist/.*"
- "**/coverage/.*"
- "*.json"

parser: '@typescript-eslint/parser'
parser: "@typescript-eslint/parser"

parserOptions:
ecmaVersion: 2023
sourceType: module
project:
- './.github/linters/tsconfig.json'
- './tsconfig.json'
- "./.github/linters/tsconfig.json"
- "./tsconfig.json"

plugins:
- jest
- '@typescript-eslint'
- "@typescript-eslint"

extends:
- eslint:recommended
Expand All @@ -34,31 +34,31 @@ extends:

rules:
{
'camelcase': 'off',
'eslint-comments/no-use': 'off',
'eslint-comments/no-unused-disable': 'off',
'i18n-text/no-en': 'off',
'import/no-namespace': 'off',
'no-console': 'off',
'semi': 'off',
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/explicit-member-accessibility':
['error', { 'accessibility': 'no-public' }],
'@typescript-eslint/explicit-function-return-type':
['error', { 'allowExpressions': true }],
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-extraneous-class': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/no-unnecessary-qualifier': 'error',
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-for-of': 'warn',
'@typescript-eslint/prefer-function-type': 'warn',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/space-before-function-paren': 'off'
"camelcase": "off",
"eslint-comments/no-use": "off",
"eslint-comments/no-unused-disable": "off",
"i18n-text/no-en": "off",
"import/no-namespace": "off",
"no-console": "off",
"semi": "off",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-member-accessibility":
["error", { "accessibility": "no-public" }],
"@typescript-eslint/explicit-function-return-type":
["error", { "allowExpressions": true }],
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/space-before-function-paren": "off",
}
49 changes: 7 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,29 @@
name: Continuous Integration
name: CI - Pull Request

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: read
contents: write
issues: write

jobs:
test-typescript:
name: TypeScript Tests
code-quality:
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
- name: Checkout Branch
uses: actions/checkout@v4

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm

- name: Install Dependencies
id: npm-ci
run: npm ci

- name: Check Format
id: npm-format-check
run: npm run format:check

- name: Lint
id: npm-lint
run: npm run lint

- name: Test
id: npm-ci-test
run: npm run ci-test

test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
- name: Code Quality
uses: ./
with:
milliseconds: 2000

- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.time }}"
token: ${{ secrets.PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- main
schedule:
- cron: '31 7 * * 3'
- cron: "31 7 * * 3"

permissions:
actions: read
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/linter.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,9 @@ __tests__/runner/*
# IDE files
.idea
*.code-workspace

# TS Docs
docs

# VSCode
.vscode
6 changes: 3 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dist/
node_modules/
coverage/
# Ignore artifacts:
build
coverage
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
8 changes: 6 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
"request": "launch",
"runtimeExecutable": "npx",
"cwd": "${workspaceRoot}",
"args": ["local-action", ".", "src/main.ts", ".env"],
"args": ["local-action", ".", "src/main.ts", ".env", "-- --local"],
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**", "node_modules/**"]
"skipFiles": ["<node_internals>/**", "node_modules/**"],
"env": {
"NODE_OPTIONS": "--experimental-specifier-resolution=node"
},
"preLaunchTask": "npm: install"
}
]
}
3 changes: 0 additions & 3 deletions CODEOWNERS

This file was deleted.

Loading
Loading