Infrastructure/Major: Containerize with Docker/Compose and Kubernetes #15
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: Node.js Lint and Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - '**' | |
| pull_request: | |
| jobs: | |
| lint-and-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup NodeJS | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 24.13.1 | |
| - name: Setup npm | |
| run: npm install -g npm@11.8.0 | |
| - name: Fetch node_modules from cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install node_modules | |
| run: npm ci | |
| - name: Compile | |
| run: npm run build | |
| - name: Lint | |
| run: npm run ci-lint |