From a61628857480fafe713c240094d0aa61e47db26b Mon Sep 17 00:00:00 2001 From: Doug Richar Date: Mon, 4 Dec 2023 01:30:13 -0500 Subject: [PATCH] ci: add GitHub Action CI workflow --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 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 0000000..046bc14 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: + pull_request: + branches: + - '*' + push: + branches: + - 'main' + +jobs: + run-ci: + name: Run Unit Tests, Lint, and Build + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Bun + uses: oven-sh/setup-bun@v1 + + - name: Install dependencies + run: bun install + + - name: Lint + run: bun run lint + + - name: Prettier + run: bun run prettier + + - name: Typecheck + run: bun run typecheck + + - name: Run tests + run: bun test + + # - name: Run Jest tests + # run: bun run test + + - name: Build + run: bun run build