diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..176f46d --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,36 @@ +name: CI +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Node V20 + uses: actions/setup-node@v3 + with: + node-version: 20.x + cache: 'pnpm' + + - name: Install Dependencies + run: pnpm install + + - name: Add generated prisma types + run: pnpm exec prisma generate + + - name: Lint Project + run: pnpm lint + + - name: Type Check Project + run: pnpm typecheck + + - name: Build Project + run: echo "🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index b95c8ed..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: NodeJS with Webpack - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x, 16.x, 18.x] - - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Build - run: | - npm install - npx webpack diff --git a/notes.md b/notes.md index 385352e..494ab74 100644 --- a/notes.md +++ b/notes.md @@ -1,2 +1,6 @@ - import order for eslint https://dev.to/otamnitram/sorting-your-imports-correctly-in-react-213m + + +-- pnpm issue with prisma +https://github.com/prisma/prisma/issues/2584#issuecomment-646414549