diff --git a/.github/workflows/node-app.yml b/.github/workflows/node-app.yml new file mode 100644 index 0000000..2b62c4e --- /dev/null +++ b/.github/workflows/node-app.yml @@ -0,0 +1,36 @@ +name: Node.js CI + +on: + push: + branches: [trunk] + pull_request: + branches: [trunk] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + working-directory: ./view/web + run: npm install + + - name: Build TypeScript code + working-directory: ./view/web + run: npm run build + + - name: Run Vitest tests + working-directory: ./view/web + run: npm run test