Skip to content
Merged
Show file tree
Hide file tree
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
47 changes: 47 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Continuous Integration

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
operating-system:
- ubuntu-latest
php-version:
- '8.4'
- '8.5'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
tools: none
ini-values: assert.exception=1, zend.assertions=1

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

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

- name: Install dependencies
run: composer install --no-interaction --prefer-dist

- name: Run test suite
run: ./vendor/bin/phpunit
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Releasing this package: Actions -> Release -> Run workflow, pick the branch
# (7.x) and type the version. Or from a terminal:
#
# gh workflow run release.yml --ref 7.x -f version=7.0.0
#
# The shared workflow creates the tag itself, and only after every check has
# passed. Do not tag by hand -- Packagist derives versions from tags, so a tag
# is a published version the moment it exists.
#
# Release notes come from this package's own CHANGELOG.md. The version you type
# must match the version at the top of the change log -- or, for a pre-release
# such as 7.0.0-alpha1, its base version, so that alphas and betas do not each
# need a change log section of their own.

name: Release

on:
workflow_dispatch:
inputs:
version:
description: 'Version to release, e.g. 7.0.0'
required: true
type: string

jobs:
release:
uses: auraphp/bin/.github/workflows/release.yml@master
permissions:
contents: write
with:
version: ${{ inputs.version }}
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## 6.0.0
## 7.0.0

Initial release.

Expand All @@ -10,5 +10,5 @@ Initial release.
- (ADD) `Aura\Session_Interface\FlashSegmentInterface` — flash values: `setFlash()`, `getFlash()`, `clearFlash()`, `getFlashNext()`, `setFlashNow()`, `clearFlashNow()`, `keepFlash()`.

These interfaces are shared by `aura/session` (the full implementation) and
`aura/auth` (which needs only a light session); both depend on `^6.0`. PHP
8.1+ is required.
`aura/auth` (which needs only a light session); both depend on `^7.0`. PHP
8.4+ is required.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ They are used by:
composer require aura/session-interface
```

This package has no dependencies other than PHP `^8.1`.
This package has no dependencies other than PHP `^8.4`.

## Interfaces

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "^8.1"
"php": "^8.4"
},
"autoload": {
"psr-4": {
Expand Down
Loading