Skip to content

Commit

Permalink
Github actions: Added missing step for ziggy; Added names to steps
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Mar 27, 2024
1 parent 245eaf0 commit 782bc31
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 14 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/npm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,23 @@ jobs:
- name: "Checkout code"
uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
- name: "Setup PHP (for Ziggy)"
uses: shivammathur/setup-php@v2
with:
php-version: '8.3.1'
php-version: '8.3'
extensions: intl, zip
- run: composer install
- name: Use Node.js
coverage: none

- name: "Run composer install (for Ziggy)"
run: composer install -n --prefer-dist

- name: "Use Node.js"
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run build

- name: "Install npm dependencies"
run: npm ci

- name: "Build"
run: npm run build
10 changes: 7 additions & 3 deletions .github/workflows/npm-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ jobs:
- name: "Checkout code"
uses: actions/checkout@v4

- name: Use Node.js
- name: "Use Node.js"
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run lint

- name: "Install npm dependencies"
run: npm ci

- name: "Run linter"
run: npm run lint
20 changes: 17 additions & 3 deletions .github/workflows/npm-typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,23 @@ jobs:
- name: "Checkout code"
uses: actions/checkout@v4

- name: Use Node.js
- name: "Setup PHP (for Ziggy)"
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: intl, zip
coverage: none

- name: "Run composer install (for Ziggy)"
run: composer install -n --prefer-dist

- name: "Use Node.js"
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run type-check

- name: "Install npm dependencies"
run: npm ci

- name: "Run type check"
run: npm run type-check
4 changes: 2 additions & 2 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
with:
node-version: '20.x'

- name: Install dependencies
- name: "Install dependencies"
run: npm ci

- name: Build Frontend
- name: "Build Frontend"
run: npm run build

- name: "Prepare Laravel Application"
Expand Down

0 comments on commit 782bc31

Please sign in to comment.