From 96194eff3e4c6e07dd058a7c0fc6c1771e13c488 Mon Sep 17 00:00:00 2001 From: ole1986 Date: Tue, 26 Nov 2024 18:57:13 +0100 Subject: [PATCH] test --- .github/workflows/test.yml | 34 +++++++++++++++++++++++++++------- .vscode/settings.json | 13 +++++++++++++ composer.json | 5 ++++- 3 files changed, 44 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3d13e6..3c87424 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,12 +5,32 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: php-actions/composer@v6 + - run: rm composer.lock + - name: Install dependencies + run: composer install --no-interaction --prefer-source + - name: Use strauss + run: composer prefix-namespaces + - name: Archive Release + uses: thedoctor0/zip-release@0.7.1 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 diff --git a/.vscode/settings.json b/.vscode/settings.json index e6e8628..166ce54 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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", diff --git a/composer.json b/composer.json index be1a072..aa63991 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,10 @@ } ], "scripts": { - "prefix-namespaces": "vendor/bin/strauss" + "prefix-namespaces": [ + "strauss", + "@php composer dump-autoload" + ] }, "autoload": { "psr-4": {