-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to Laravel 11 * Fix release.yml workflow * Fix typo in pint.yml workflow
- Loading branch information
1 parent
30cb8c2
commit e9c9bc4
Showing
76 changed files
with
3,536 additions
and
3,660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Pint | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- README.md | ||
- .github/workflows/release.yml | ||
|
||
jobs: | ||
pint: | ||
runs-on: ubuntu-24.04 | ||
|
||
name: Test code quality | ||
|
||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.3" | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Composer dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress | ||
|
||
- name: Test code style | ||
run: vendor/bin/pint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-and-release: | ||
runs-on: ubuntu-24.04 | ||
|
||
name: Build and release | ||
|
||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.3" | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install NPM dependencies | ||
run: npm install | ||
|
||
- name: Build assets | ||
run: npm run build | ||
|
||
- name: Clean release | ||
run: | | ||
rm -rf .git* node_modules | ||
- name: Define release version | ||
run: | | ||
TAG=${{ github.ref_name }} | ||
{ | ||
echo "TAG=$TAG" | ||
echo "VERSION=${TAG#v}" | ||
} >> "$GITHUB_ENV" | ||
- name: Build release | ||
run: | | ||
DIRECTORY="mfa-$VERSION" | ||
TARGET="/tmp/mfa-$VERSION.tar.gz" | ||
cd .. | ||
cp -R mfa "$DIRECTORY" | ||
tar --owner 0 --group 0 -czf "$TARGET" "$DIRECTORY" | ||
rm -rf "$DIRECTORY" | ||
- name: Create release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: /tmp/mfa-*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
/.phpunit.cache | ||
/node_modules | ||
/public/build | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
.env | ||
.env.backup | ||
.env.production | ||
.phpactor.json | ||
.phpunit.result.cache | ||
Homestead.json | ||
Homestead.yaml | ||
auth.json | ||
envoy | ||
npm-debug.log | ||
yarn-error.log | ||
/.fleet | ||
/.idea | ||
/.vscode | ||
envoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.