update password #389
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
on: | |
push: | |
name: Create Release | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Cache Composer dependencies | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
# start tests | |
- name: start tests | |
run: | | |
cp config/config.sample.php config/config.php | |
# tests | |
- name: Composer Install | |
uses: php-actions/composer@v5 | |
with: | |
dev: yes | |
args: --profile --ignore-platform-reqs | |
php_extensions: intl | |
php_version: 8.3 | |
- name: PHPUnit Tests | |
uses: php-actions/phpunit@v3 | |
with: | |
configuration: test/phpunit.xml | |
php_extensions: intl | |
php_version: 8.3 | |
memory_limit: 2G | |
version: 10.4.2 | |
bootstrap: test/bootstrap.php | |
# end tests | |
- name: end tests | |
run: | | |
rm -rf config/config.php # remove test config | |
sudo rm -rf vendor/ | |
- name: Composer Install | |
uses: php-actions/composer@v5 | |
with: | |
dev: no | |
args: --profile --ignore-platform-reqs | |
php_extensions: intl | |
php_version: 8.3 | |
- name: create configs | |
run: | | |
cp config/config.sample.php config/config.php | |
- name: Clean Up | |
run: | | |
sudo rm -rf node_modules | |
sudo rm -rf .github .git config/phpstan config/vagrant config/docker data/keestash_test.log | |
sudo rm -f .babelrc .editorconfig .eslintrc.js .gitignore Vagrantfile composer.json composer.lock package-lock.json package.json webpack.config.js output.log README.md psalm.xml docker-compose.yaml docker_tag Makefile rector.php | |
sudo rm -rf test/ apps/*/Test/ | |
sudo rm -rf apps/*/js/ | |
sudo rm -rf apps/*/scss/ | |
- name: Create Package | |
run: | | |
sudo 7z a nightly${{ github.sha }}.zip ../server | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: nightly${{ github.sha }} | |
release_name: nightly${{ github.sha }} | |
draft: false | |
prerelease: false | |
- 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: ./nightly${{ github.sha }}.zip | |
asset_name: nightly${{ github.sha }}.zip | |
asset_content_type: application/zip |