From 9330597d3d39b15790d8aabd94447aa7460efe18 Mon Sep 17 00:00:00 2001 From: Darwin D Wu Date: Wed, 21 Feb 2024 01:05:57 -0800 Subject: [PATCH] setup CI base --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ Makefile | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..944e7cc4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + # TODO: build? + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # TODO: install kotlin and ktlint + + # - name: Lint + # run: make lint + + + # note: do we need a separate fmt? + # ktlint seems to cover what we need + # fmt: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 diff --git a/Makefile b/Makefile index e244b187..ba7022e0 100644 --- a/Makefile +++ b/Makefile @@ -5,3 +5,7 @@ dev: .PHONY: test test: gradle test inngest-core:test + +.PHONY: lint +lint: + ktlint --color