Add initial project setup with package configuration, workflows, and … #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Setup Action | |
| - name: Setup Action | |
| uses: actions/checkout@v4 | |
| # Setup Node.js | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "latest" | |
| # Setup PNPM | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v4 | |
| # Install dependencies | |
| - name: Install dependencies | |
| run: pnpm install --no-frozen-lockfile | |
| # Run test | |
| - name: Run test | |
| run: node --run test |