#2422 implement onlyPublished optional param #3820
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
| # Custom tests for mcdev | |
| # | |
| name: 'Code Testing' | |
| on: | |
| push: | |
| branches: [main, develop, hotfix] | |
| pull_request: | |
| # The branches below must be a subset of the branches above | |
| branches: [main, develop, hotfix] | |
| jobs: | |
| lintandTesting: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: ['18.20', '20.10', 21, 22, 23] | |
| name: lint & test w/ node v${{ matrix.node }} | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| registry-url: https://registry.npmjs.org/ | |
| - run: npm ci --ignore-scripts | |
| - run: npm run lint | |
| # Assuming code passes, run tests | |
| - name: Run mcdev-tests | |
| run: npm run test |