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