From 03690516f5fa3b8b57681bd404044a3555a2719d Mon Sep 17 00:00:00 2001 From: aslan Date: Sat, 10 Feb 2024 14:10:13 +0300 Subject: [PATCH] fix CI --- .gitea/workflows/php.yml | 45 ++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/php.yml b/.gitea/workflows/php.yml index 29981dc..0535e23 100644 --- a/.gitea/workflows/php.yml +++ b/.gitea/workflows/php.yml @@ -19,27 +19,26 @@ jobs: steps: - uses: actions/checkout@v4 - - name: add GITHUB_TOKEN - run: echo ${{ secrets.GH_TOKEN }} -# - name: Set up PHP ${{ matrix.php-versions }} -# uses: shivammathur/setup-php@v2 -# with: -# php-version: ${{ matrix.php-versions }} -# coverage: xdebug -# extensions: :opcache, mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite -# tools: composer:v2.6.6 -# ini-values: opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=64M -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }} -# debug: true -# -# - 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: Set up PHP ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + coverage: xdebug + extensions: :opcache, mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite + tools: composer:v2.6.6 + ini-values: opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=64M + env: + GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }} + debug: true + + - 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: | @@ -56,8 +55,8 @@ jobs: # COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works # run: composer install # will work -# - name: add GITHUB_TOKEN -# run: composer config --global github-oauth.github.com ${{ secrets.GITHUBTOKEN }} && echo ${{ secrets.GITHUBTOKEN }} + - name: add GITHUB_TOKEN + run: composer config --global github-oauth.github.com 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 # # - name: Setup project # run: make setup