From f5c07657ab5f9336ecd425b7793672a8a9bb1ea4 Mon Sep 17 00:00:00 2001 From: n Date: Sun, 11 Feb 2024 21:09:43 +0100 Subject: [PATCH] add Gitea CI --- .gitea/workflows/lint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/lint.yml diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..2379788 --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -0,0 +1,24 @@ +name: lint +run-name: lint is launched by ${{ github.actor }} +on: [push] +jobs: + check: + runs-on: ubuntu-latest + name: lint + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - name: Install phplint using Composer + run: | + export COMPOSER_HOME=/tmp + echo "{}" > composer.json + composer config --no-interaction allow-plugins.bamarni/composer-bin-plugin true + composer require --dev bamarni/composer-bin-plugin + composer bin phplint require --dev overtrue/phplint + - name: Lint + run: vendor/bin/phplint --no-cache --no-progress -v + - run: echo "🍏 This job's status is ${{ job.status }}." +