This commit is contained in:
aslan 2024-02-10 14:06:05 +03:00
parent 3da2646052
commit 98a2dd92f8
1 changed files with 51 additions and 50 deletions

View File

@ -19,26 +19,27 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: add GITHUB_TOKEN
- name: Set up PHP ${{ matrix.php-versions }} run: echo ${{ secrets.GITHUBTOKEN }}
uses: shivammathur/setup-php@v2 # - name: Set up PHP ${{ matrix.php-versions }}
with: # uses: shivammathur/setup-php@v2
php-version: ${{ matrix.php-versions }} # with:
coverage: xdebug # php-version: ${{ matrix.php-versions }}
extensions: :opcache, mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite # coverage: xdebug
tools: composer:v2.6.6 # extensions: :opcache, mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite
ini-values: opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=64M # tools: composer:v2.6.6
env: # ini-values: opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=64M
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }} # env:
debug: true # GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
# debug: true
- name: PHP Security Checker #
uses: StephaneBour/actions-php-security-checker@1.1 # - name: PHP Security Checker
# uses: StephaneBour/actions-php-security-checker@1.1
- name: Use Node.js ${{ matrix.node-version }} #
uses: actions/setup-node@v3 # - name: Use Node.js ${{ matrix.node-version }}
with: # uses: actions/setup-node@v3
node-version: ${{ matrix.node-version }} # with:
# node-version: ${{ matrix.node-version }}
# - name: Add keys # - name: Add keys
# run: | # run: |
@ -55,33 +56,33 @@ jobs:
# COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works # COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works
# run: composer install # will work # run: composer install # will work
- name: add GITHUB_TOKEN # - name: add GITHUB_TOKEN
run: composer config --global github-oauth.github.com ${{ secrets.GITHUBTOKEN }} && echo ${{ secrets.GITHUBTOKEN }} # run: composer config --global github-oauth.github.com ${{ secrets.GITHUBTOKEN }} && echo ${{ secrets.GITHUBTOKEN }}
#
- name: Setup project # - name: Setup project
run: make setup # run: make setup
#
- name: Check lint # - name: Check lint
run: make lint # run: make lint
#
- name: Check tests # - name: Check tests
run: make test # run: make test
#
deploy: # deploy:
needs: build # needs: build
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- name: Checkout # - name: Checkout
uses: appleboy/ssh-action@v1.0.3 # uses: appleboy/ssh-action@v1.0.3
#
with: # with:
host: ${{ secrets.HOST }} # host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }} # username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }} # password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }} # port: ${{ secrets.PORT }}
script: | # script: |
cd /var/www/test-testabit/ # cd /var/www/test-testabit/
git stash # git stash
git pull --rebase # git pull --rebase
git stash clear # git stash clear
make setup-test # make setup-test