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