Skip to content

chore(main): release 1.1.0 (#31) #33

chore(main): release 1.1.0 (#31)

chore(main): release 1.1.0 (#31) #33

name: On push to main
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
jobs:
main:
runs-on: ubuntu-latest
env:
MOMENTO_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
MOMENTO_CACHE_NAME: laravel-cache-test
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
extensions: grpc, protobuf
tools: composer
- name: Install dependencies
run: composer install
- name: Run tests
run: php vendor/phpunit/phpunit/phpunit --configuration phpunit.xml
- name: Generate README
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v1
with:
project_status: official
project_stability: stable
project_type: other
- uses: google-github-actions/release-please-action@v3
name: Release Please
id: release
with:
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }}
release-type: php
package-name: laravel-cache
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'
- name: Publish
run: |
echo "Published version: ${{ steps.release.outputs.tag_name }}"
if: ${{ steps.release.outputs.release_created }}