diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0a8078d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name : Test Platform + +on: + pull_request: + branches: + - main + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm run test + + - name: Build Next.js + run: npm run build \ No newline at end of file