From 0aa8b4011bd071f272fb465f4170d35f5c5560d8 Mon Sep 17 00:00:00 2001 From: cloudix_mcp_server Date: Sat, 13 Jun 2026 21:16:58 -0400 Subject: [PATCH] =?UTF-8?q?feat(workflow):=20add=20pr.yaml=20=E2=80=94=20P?= =?UTF-8?q?R=20checks=20(hadolint=20+=20build-test)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/pr.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/pr.yaml diff --git a/.gitea/workflows/pr.yaml b/.gitea/workflows/pr.yaml new file mode 100644 index 0000000..3de5d2d --- /dev/null +++ b/.gitea/workflows/pr.yaml @@ -0,0 +1,25 @@ +name: PR Checks + +on: + pull_request: + branches: [main] + +jobs: + hadolint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + - uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0 + continue-on-error: true + with: + dockerfile: Dockerfile + + build-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + with: + fetch-depth: 0 + - run: git clone --depth 1 https://github.com/HKUDS/nanobot.git external-nanobot + - uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4 + - run: docker build -t ci-image:${{ github.sha }} -f external-nanobot/Dockerfile external-nanobot