Skip to content

Commit

Permalink
Add build related steps
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinkrzeminski committed Sep 20, 2024
1 parent 8230c2c commit 66f12cb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy-to-stream-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,38 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2

- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer packages
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ hashFiles( 'composer.lock' ) }}
restore-keys: ${{ runner.os }}-php-

- name: Install NPM dependencies
run: npm install

- name: Install Composer dependencies
run: composer install --no-dev

- name: Build
run: npm run build

- name: Setup environment
run: |
set -ex
Expand Down

0 comments on commit 66f12cb

Please sign in to comment.