Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/create-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Create composer.lock

on:
push:
tags:
- '*'
branches:
- test-create-lock

jobs:
run:
runs-on: ubuntu-20.04

steps:

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- uses: actions/checkout@v1

- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.0

- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: ${{ runner.os }}-composer-cache-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-cache-

- name: Build Thunder
run: |
composer create-project thunder/thunder-project thunder --no-interaction --no-install
cd thunder
composer require thunder/thunder-distribution:dev-${{ env.RELEASE_VERSION }} --no-install
composer update