Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ole1986 committed Nov 26, 2024
1 parent eeb4b13 commit 25ebaa6
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: php-actions/composer@v6
- name: Install dependencies
run: composer install --no-interaction --prefer-source
- name: Use strauss
run: prefix-namespaces
- name: Archive Release
uses: thedoctor0/[email protected]
with:
php_version: "8.2"
version: 2
- uses: php-actions/composer@v6
type: "zip"
filename: "release.zip"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
php_version: "8.2"
version: 2
command: prefix-namespaces
tag_name: test
release_name: Release Test
draft: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./release.zip
asset_name: release.zip
asset_content_type: application/zip
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{
"intelephense.files.exclude": [
"**/.git/**",
"**/.svn/**",
"**/.hg/**",
"**/CVS/**",
"**/.DS_Store/**",
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**/{Tests,tests}/**",
"**/.history/**",
"**/vendor/**/vendor/**",
"**/vendor_build/**"
],
"intelephense.stubs": [
"apache",
"bcmath",
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
}
],
"scripts": {
"prefix-namespaces": "vendor/bin/strauss"
"prefix-namespaces": [
"strauss",
"@php composer dump-autoload"
]
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 25ebaa6

Please sign in to comment.