Skip to content

Commit 2752ffe

Browse files
committed
More changes
1 parent 82b8e94 commit 2752ffe

16 files changed

+144
-220
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "composer"
3+
- package-ecosystem: "npm"
44
directory: "/"
55
schedule:
66
interval: "weekly"
77
commit-message:
88
prefix: "chore(deps):"
99
open-pull-requests-limit: 10
1010
groups:
11-
composer-version-updates:
11+
npm-version-updates:
1212
patterns:
1313
- "*"
1414
applies-to: "version-updates"
15-
composer-security-updates:
15+
npm-security-updates:
1616
patterns:
1717
- "*"
1818
applies-to: "security-updates"

.github/workflows/autofix.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/integration.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ permissions:
1515

1616
jobs:
1717
check-compatibility:
18-
name: With PHP ${{ matrix.php-version }}
18+
name: With Node ${{ matrix.node-version }}
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
php-version: [ '8.1', '8.2', '8.3', '8.4' ]
22+
node-version: [ '20', '21', '23', '24' ]
2323
fail-fast: false
2424

2525
steps:
@@ -40,11 +40,12 @@ jobs:
4040
ref: ${{ inputs.sanity_ref }}
4141
path: project/sanity
4242

43-
- name: Set up PHP
44-
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
43+
- name: Setup Node
44+
uses: actions/setup-node@v4
4545
with:
46-
php-version: ${{ matrix.php-version }}
46+
cache: 'npm'
47+
node-version: ${{ matrix.node-version }}
4748

4849
- name: Check Installability
4950
working-directory: project/sanity
50-
run: composer require zitadel/client
51+
run: npm install @zitadel/client-node

.github/workflows/linting.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,17 @@ jobs:
3636
with:
3737
ref: ${{ inputs.ref }}
3838

39-
- name: Setup PHP
40-
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
4141
with:
42-
php-version: '8.1'
42+
cache: 'npm'
43+
node-version-file: '.nvmrc'
4344

4445
- name: Install Dependencies
45-
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
46+
run: npm ci --no-progress
4647

4748
- name: Run Formatter
48-
run: composer format
49+
run: npm run format
4950

5051
- name: Commit Changes
5152
if: ${{ inputs.commit_changes == true }}

.github/workflows/pipeline.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
needs:
8282
# - lint-commits
8383
- code-style
84-
- auto-fix
8584
- compat-check
8685
- type-check
8786
- run-tests

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ jobs:
3636
with:
3737
node-version: 'lts/*'
3838

39-
- name: Setup PHP
40-
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
41-
with:
42-
php-version: '8.1'
43-
4439
- name: Run semantic-release
4540
uses: mridang/action-semantic-release@v1.2.3
4641
with:
@@ -49,5 +44,4 @@ jobs:
4944
env:
5045
DOCKER_REGISTRY_USER: ${{ github.actor }}
5146
DOCKER_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
52-
PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
53-
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
47+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,17 @@ jobs:
3838
with:
3939
ref: ${{ inputs.ref }}
4040

41-
- name: Setup PHP
42-
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
41+
- name: Setup Node
42+
uses: actions/setup-node@v4
4343
with:
44-
php-version: '8.1'
44+
cache: 'npm'
45+
node-version-file: '.nvmrc'
4546

4647
- name: Install Dependencies
47-
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
48+
run: npm ci --no-progress
4849

4950
- name: Run Tests
50-
run: composer test
51+
run: npm run test
5152
env:
5253
BASE_URL: ${{ secrets.BASE_URL }}
5354
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}

.github/workflows/typecheck.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ jobs:
3030
with:
3131
ref: ${{ inputs.ref }}
3232

33-
- name: Setup PHP
34-
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
33+
- name: Setup Node
34+
uses: actions/setup-node@v4
3535
with:
36-
php-version: '8.1'
36+
cache: 'npm'
37+
node-version-file: '.nvmrc'
3738

3839
- name: Install Dependencies
39-
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
40+
run: npm ci --no-progress
4041

41-
- name: Run Phpstan
42-
run: composer phpstan -- --error-format=github --no-progress
42+
- name: Run Typecheck
43+
run: npm run prepack

knip.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module.exports = {
2-
entry: ['src/index.ts'],
3-
ignoreDependencies: ['@semantic-release/.*?'],
2+
entry: ['src/index.ts', 'release.config.mjs'],
43
};

lefthook.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ pre-commit:
33

44
commands:
55
format:
6-
glob: "*.php"
7-
run: composer format
6+
glob: "*.*"
7+
run: npm run format
88

99
check:
10-
glob: "*.php"
11-
run: |
12-
composer rector
13-
composer phpstan
10+
glob: "*.*"
11+
run: npm run lint:fix

0 commit comments

Comments
 (0)