diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..b7ed379 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,23 @@ +name: Build Test + +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6.0.2 + + - name: Set up Node.js + uses: actions/setup-node@v6.2.0 + with: + node-version: 24 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build diff --git a/.github/workflows/php-tests.yml b/.github/workflows/php-tests.yml new file mode 100644 index 0000000..8b3ac76 --- /dev/null +++ b/.github/workflows/php-tests.yml @@ -0,0 +1,24 @@ +name: PHP Tests + +on: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6.0.2 + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.5' + tools: composer:v2 + extensions: ctype, iconv, mongodb + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + - name: Run tests + run: composer test diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml new file mode 100644 index 0000000..703aba3 --- /dev/null +++ b/.github/workflows/renovate.yml @@ -0,0 +1,35 @@ +name: Renovate + +on: + schedule: + - cron: "0 3 * * *" + workflow_dispatch: + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6.0.2 + + - name: Set up Node.js + uses: actions/setup-node@v6.2.0 + with: + node-version: 24 + cache: npm + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.5' + tools: composer:v2 + + - name: Install Renovate + run: npm install -g renovate + + - name: Run Renovate + env: + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} + RENOVATE_PLATFORM: gitea + RENOVATE_ENDPOINT: https://git.ktrix.dev/api/v1 + run: renovate ${{ gitea.repository }}