From cc7d6eb5ea020bf2143c6ac2ad6eafd69e3165c7 Mon Sep 17 00:00:00 2001 From: aslan Date: Mon, 5 Feb 2024 13:14:29 +0300 Subject: [PATCH] fix CI deploy --- .gitea/workflows/php.yml | 102 +++++++++++++++++++-------------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/.gitea/workflows/php.yml b/.gitea/workflows/php.yml index a567911..ed5caab 100644 --- a/.gitea/workflows/php.yml +++ b/.gitea/workflows/php.yml @@ -9,59 +9,59 @@ on: - main jobs: -# build: -# runs-on: ubuntu-latest -# -# strategy: -# matrix: -# php-versions: [ '8.3' ] -# node-version: ['20.x'] -# -# steps: -# - uses: actions/checkout@v4 -# -# - name: Set up PHP ${{ matrix.php-versions }} -# uses: shivammathur/setup-php@v2 -# with: -# php-version: ${{ matrix.php-versions }} -# -# - name: PHP Security Checker -# uses: StephaneBour/actions-php-security-checker@1.1 -# -# - name: Use Node.js ${{ matrix.node-version }} -# uses: actions/setup-node@v3 -# with: -# node-version: ${{ matrix.node-version }} -# -# - name: Add keys -# run: | -# 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 -# - run: echo $COMPOSER_AUTH|jq -r '.["github-oauth"]["github.com"]'|base64 -# - run: echo $GITHUB_TOKEN|base64 -# - name: Diagnose composer -# env: -# COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works -# run: composer diagnose -vvv -# - name: Install dependencies -# env: -# COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works -# run: composer install # will work -# -# - name: Setup sqlite3 driver -# run: apt install php${{ matrix.php-versions }}-sqlite3 -y -# -# - name: Setup project -# run: make setup -# -# - name: Check lint -# run: make lint -# -# - name: Check tests -# run: make test + build: + runs-on: ubuntu-latest + + strategy: + matrix: + php-versions: [ '8.3' ] + node-version: ['20.x'] + + steps: + - uses: actions/checkout@v4 + + - name: Set up PHP ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + + - name: PHP Security Checker + uses: StephaneBour/actions-php-security-checker@1.1 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Add keys + run: | + 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 + - run: echo $COMPOSER_AUTH|jq -r '.["github-oauth"]["github.com"]'|base64 + - run: echo $GITHUB_TOKEN|base64 + - name: Diagnose composer + env: + COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works + run: composer diagnose -vvv + - name: Install dependencies + env: + COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works + run: composer install # will work + + - name: Setup sqlite3 driver + run: apt install php${{ matrix.php-versions }}-sqlite3 -y + + - name: Setup project + run: make setup + + - name: Check lint + run: make lint + + - name: Check tests + run: make test deploy: -# needs: build + needs: build runs-on: ubuntu-latest steps: - name: Checkout