diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..85c7e76 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: github action CI + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize] + branches: + - "feature/*" + - "docs/*" + - "ui/*" + - "refactor/*" + - "infra/*" + +jobs: + ci: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Launch Turbo Remote Cache Server + uses: dtinth/setup-github-actions-caching-for-turbo@v1 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: "pnpm" + - name: Install Dependencies + run: pnpm install + - name: Check Lint + run: pnpm lint + - name: Check Type + run: pnpm typecheck + - name: Unit Test + run: pnpm test