-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add check typescript generated github action
- Loading branch information
Gregor Vostrak
authored and
Gregor Vostrak
committed
Jan 21, 2024
1 parent
d2eb7cf
commit 6e88e08
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,29 @@ | ||
name: NPM Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3.1' | ||
extensions: intl, zip | ||
- run: composer install | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
- run: npm ci | ||
- run: npm run lint:fix | ||
- run: composer generate-typescript | ||
- name: Verify Changed files | ||
uses: tj-actions/verify-changed-files@v17 | ||
id: verify-changed-files | ||
with: | ||
fail-if-changed: true | ||
fail-message: 'The models.ts file is not up to date. Please run `composer generate-typescript` locally and commit the changes.' | ||
files: | | ||
resources/js/types/models.ts |