diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml new file mode 100644 index 00000000..aba7d3b4 --- /dev/null +++ b/.github/workflows/lint_and_test.yml @@ -0,0 +1,43 @@ +name: Lint and Test + +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev + +jobs: + lint-and-test: + name: Lint and Test + runs-on: ubuntu-latest + + steps: + # Checkout the repository + - name: Checkout repository + uses: actions/checkout@v4 + + # Install pnpm + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + run_install: true + + # Set up Node.js + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "pnpm" + + # Run lint + - name: Run lint + run: pnpm eslint . + + # Run tests + - name: Run tests + run: pnpm test