diff --git a/.github/workflows/create-lock.yml b/.github/workflows/create-lock.yml new file mode 100644 index 000000000..c4d96f540 --- /dev/null +++ b/.github/workflows/create-lock.yml @@ -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 +