feat(#537)!: error when form internalId does not match file name #1956
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: Build CHT Conf and test against node versions | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: Build for Node version ${{ matrix.node-version }} | |
| runs-on: ubuntu-22.04 | |
| env: | |
| FORCE_COLOR: 1 | |
| strategy: | |
| matrix: | |
| node-version: [ 20.x, 22.x, 24.x ] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm ci | |
| - run: npm run eslint | |
| - run: npm test | |
| - name: Archive Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Coverage Report ${{ matrix.node-version }} | |
| path: | | |
| coverage | |
| .nyc_output | |
| if: ${{ failure() }} | |
| e2e: | |
| name: E2E tests | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - name: Set system ulimit | |
| uses: medic/cht-core/.github/actions/bump-system-ulimit@476c97b0427e75ebdc1745afb5c73da0574f963a | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Hard code local-ip IP in /etc/hosts per https://github.com/medic/medic-infrastructure/issues/571#issuecomment-2209120441 | |
| run: | | |
| echo "15.188.129.97 local-ip.medicmobile.org" | sudo tee -a /etc/hosts | |
| - name: Run E2E tests | |
| run: npm run test-e2e |