From c981b7b6e62b7886e7b0cf6e3fd7eb0daf26440c Mon Sep 17 00:00:00 2001 From: d3m0k1d Date: Fri, 3 Apr 2026 19:20:00 +0300 Subject: [PATCH] init ci files --- .gitea/workflows/ci-agent.yml | 35 +++++++++++++++++++++++++++++++++++ .gitea/workflows/ci-front.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .gitea/workflows/ci-agent.yml create mode 100644 .gitea/workflows/ci-front.yml diff --git a/.gitea/workflows/ci-agent.yml b/.gitea/workflows/ci-agent.yml new file mode 100644 index 0000000..c90ac61 --- /dev/null +++ b/.gitea/workflows/ci-agent.yml @@ -0,0 +1,35 @@ +name: ci-agent + +on: + push: + branches: [backend] + pull_request: + branches: [master] + +defaults: + run: + working-directory: agent + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Go setup + uses: actions/setup-go@v6 + with: + go-version: "1.26.1" + cache: false + - name: Install deps + run: go mod tidy + - name: Golangci-lint + uses: golangci/golangci-lint-action@v9 + with: + args: --timeout=5m + skip-cache: true + working-directory: agent + - name: Run tests + run: go test ./... + - name: Build + run: go build -o agent ./cmd/main.go diff --git a/.gitea/workflows/ci-front.yml b/.gitea/workflows/ci-front.yml new file mode 100644 index 0000000..9ecd0ff --- /dev/null +++ b/.gitea/workflows/ci-front.yml @@ -0,0 +1,28 @@ +name: ci-front + +on: + push: + branches: [frontend] + pull_request: + branches: [main] + +defaults: + run: + working-directory: frontend + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Node setup + uses: actions/setup-node@v6 + with: + node-version: "24.12" + + - name: Install deps + run: npm install + - name: Lint + run: npm run build