From 6b6d58e95ec018c695e9d865b8136319ad93e825 Mon Sep 17 00:00:00 2001 From: Sebastien Castiel Date: Tue, 16 Jan 2024 13:49:37 -0500 Subject: Add GitHub actions --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6b81bbb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + +jobs: + checks: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + + - name: Install dependencies + run: npm ci --ignore-scripts + + - name: Generate Prisma client + run: npx prisma generate + + - name: Check TypeScript types + run: npm run check-types + + - name: Check ESLint + run: npm run lint + + - name: Check Prettier formatting + run: npm run check-formatting -- cgit v1.3