From 196bea79b6571ccd02af56e93ead2c75ee000545 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 20 Aug 2026 14:43:33 -0700 Subject: [PATCH] Add ci job --- .gitea/workflows/ci.yml | 35 ++++++++++++++++++++++++++ .gitea/workflows/container-publish.yml | 22 ++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 00000000..c8eaa0b1 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [dev] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + lint-check-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + + - name: Install dependencies + run: corepack enable && pnpm i --frozen-lockfile + + - name: Lint + run: pnpm run lint + + - name: Check + run: pnpm run check + + - name: Build + run: pnpm run build \ No newline at end of file diff --git a/.gitea/workflows/container-publish.yml b/.gitea/workflows/container-publish.yml index 026482f0..77699b76 100644 --- a/.gitea/workflows/container-publish.yml +++ b/.gitea/workflows/container-publish.yml @@ -14,8 +14,30 @@ env: IMAGE_NAME: coracle/flotilla jobs: + lint-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + + - name: Install dependencies + run: corepack enable && pnpm i --frozen-lockfile + + - name: Lint + run: pnpm run lint + + - name: Check + run: pnpm run check + build-and-push-image: runs-on: ubuntu-latest + needs: lint-check permissions: contents: read packages: write