diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3af7f28..73231e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,30 @@ -name: Test Workflow +name: CI Build and Lint on: push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: - test: + build: runs-on: ubuntu-latest steps: - - name: Hello - run: echo "Workflow is working!" + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'npm' + + - name: Install Dependencies + run: npm ci + + - name: Run Lint (Type Check) + run: npm run lint + + - name: Build Project + run: npm run build