diff --git a/.github/workflows/test_next_server.yml b/.github/workflows/test_next_server.yml new file mode 100644 index 00000000..e0e7ebcd --- /dev/null +++ b/.github/workflows/test_next_server.yml @@ -0,0 +1,38 @@ +name: Test Next Server + +on: + pull_request: + paths: + - "www/**" + push: + branches: + - main + paths: + - "www/**" + +jobs: + test-frontend: + runs-on: ubuntu-latest + + defaults: + run: + working-directory: ./www + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'pnpm' + cache-dependency-path: './www/pnpm-lock.yaml' + + - name: Install dependencies + run: pnpm install + + - name: Run tests + run: pnpm test + + - name: Build + run: pnpm build \ No newline at end of file