-
Notifications
You must be signed in to change notification settings - Fork 9
align with github-stats-extended #22
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
bf5eafd
remove GITHUB_REPOSITORY_OWNER, align with github-stats-extended setu…
martin-mfg 7ad295c
test GITHUB_REPOSITORY_OWNER
martin-mfg be28df4
remove debug log
martin-mfg 0bf8e1d
switch back to 'rickstaa' in e2e.yml
martin-mfg 4df0784
align ci.yml, use pnpm, precise permissions, concurrent tests, cleanup
martin-mfg 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 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,37 @@ | ||
| name: Setup Node.js + PNPM and install Dependencies | ||
| description: | | ||
| This is a composite GitHub Action that: | ||
| - Sets up pnpm package manager | ||
| - Configures Node.js environment | ||
| - Installs project dependencies with caching | ||
|
|
||
| inputs: | ||
| node-version: | ||
| description: "Explicit node version. Otherwise fallback reading `.nvmrc`" | ||
|
|
||
| runs: | ||
| using: composite | ||
|
|
||
| steps: | ||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5 | ||
|
|
||
| - name: Setup Node.js (via input) | ||
| if: ${{ inputs.node-version }} | ||
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| cache: "pnpm" | ||
| registry-url: "https://registry.npmjs.org" | ||
|
|
||
| - name: Setup Node.js (via .nvmrc) | ||
| if: ${{ !inputs.node-version }} | ||
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version-file: ".nvmrc" | ||
| cache: "pnpm" | ||
| registry-url: "https://registry.npmjs.org" | ||
|
|
||
| - name: Install Dependencies | ||
| shell: bash | ||
| run: pnpm install --frozen-lockfile |
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,66 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| concurrency: | ||
| group: "${{ github.workflow }}-${{ github.head_ref }}" | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Test ${{ matrix.node }} on ${{ matrix.os }} | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| node: [22, 24] | ||
| os: [ubuntu-latest, macos-latest] | ||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Install Dependencies | ||
| uses: ./.github/actions/install-dependencies | ||
| with: | ||
| node-version: ${{ matrix.node }} | ||
|
|
||
| - name: Run E2E tests | ||
| run: pnpm run test | ||
| env: | ||
| PAT_1: ${{ secrets.GITHUB_TOKEN }} | ||
| GITHUB_REPOSITORY_OWNER: "rickstaa" | ||
|
|
||
| code-checks: | ||
| name: Code checks | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Install Dependencies | ||
| uses: ./.github/actions/install-dependencies | ||
|
|
||
| - name: Format | ||
| run: pnpm run format:check | ||
|
|
||
| - name: Lint (knip) | ||
| run: pnpm run lint:knip |
This file was deleted.
Oops, something went wrong.
|
martin-mfg marked this conversation as resolved.
|
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 |
|---|---|---|
| @@ -1,21 +1,18 @@ | ||
| name: Release | ||
| name: Update version tags | ||
| on: | ||
| push: | ||
| branches-ignore: | ||
| - "**" | ||
| tags: | ||
| - "v*.*.*" | ||
| permissions: | ||
| contents: write | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| update-semver: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - uses: haya14busa/action-update-semver@7d2c558640ea49e798d46539536190aff8c18715 # v1.5.1 | ||
| with: | ||
| major_version_tag_only: true | ||
| - name: Create release | ||
| uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| node_modules | ||
|
|
||
| # OS | ||
| .DS_Store | ||
| .env | ||
| .vscode | ||
|
|
||
| # IDE | ||
| .idea/ | ||
| .vscode/* | ||
| !.vscode/extensions.json | ||
| !.vscode/settings.json | ||
| *.code-workspace |
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 |
|---|---|---|
| @@ -1,5 +1,2 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| npm run lint-staged | ||
| npm test | ||
| pnpm lint-staged | ||
| pnpm test |
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| pnpm-lock.yaml | ||
| package-lock.json | ||
| yarn.lock | ||
| *.md |
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 |
|---|---|---|
| @@ -1,4 +1,17 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/prettierrc", | ||
| "useTabs": false, | ||
| "semi": true, | ||
| "trailingComma": "all", | ||
| "singleQuote": false, | ||
| "trailingComma": "all" | ||
| "printWidth": 80, | ||
| "tabWidth": 2, | ||
| "overrides": [ | ||
| { | ||
| "files": ["*.jsonc"], | ||
| "options": { | ||
| "trailingComma": "none" | ||
| } | ||
| } | ||
| ] | ||
| } |
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
This file was deleted.
Oops, something went wrong.
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.