diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cc3a4b9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: 'Test & lint' + runs-on: ubuntu-latest + steps: + - name: 'Checking Out Code' + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Install Packages + run: pnpm install + working-directory: ./app + + - name: 'Running Unit Tests' + run: pnpm test + working-directory: ./app + + - name: 'Building' + run: pnpm lint + working-directory: ./app diff --git a/app/package.json b/app/package.json index 5e40cb8..2f22822 100644 --- a/app/package.json +++ b/app/package.json @@ -8,7 +8,8 @@ "preview": "vite preview", "lint": "eslint 'src/**/*.{js,ts,svelte}'", "format": "prettier . --write .", - "prepare": "svelte-kit sync" + "prepare": "svelte-kit sync", + "test": "echo 'no tests'" }, "dependencies": { "@auth/core": "^0.34.1",