fix CI
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Successful in 2m2s Details
Tests & Lint & Deploy to Railway / deploy (push) Successful in 25s Details

This commit is contained in:
aslan 2024-02-10 14:32:50 +03:00
parent caafa73a1b
commit 447f8f5552
1 changed files with 23 additions and 23 deletions

View File

@ -45,10 +45,10 @@ jobs:
sudo curl -o ~/.composer/keys.tags.pub -sL https://composer.github.io/releases.pub
sudo curl -o ~/.composer/keys.dev.pub -sL https://composer.github.io/snapshots.pub
# - name: Install dependencies
# env:
# COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works
# run: composer install # will work
- name: Install dependencies
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works
run: composer install # will work
- name: Setup project
run: make setup
@ -58,22 +58,22 @@ jobs:
- name: Check tests
run: make test
#
# deploy:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: appleboy/ssh-action@v1.0.3
#
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# password: ${{ secrets.PASSWORD }}
# port: ${{ secrets.PORT }}
# script: |
# cd /var/www/test-testabit/
# git stash
# git pull --rebase
# git stash clear
# make setup-test
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /var/www/test-testabit/
git stash
git pull --rebase
git stash clear
make setup-test