Merge pull request #215 from humanitec/dependabot/npm_and_yarn/minima… #404
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: CI | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| HUMANITEC_ORG: ${{ vars.HUMANITEC_ORG }} | |
| HUMANITEC_TOKEN: ${{ secrets.HUMANITEC_TOKEN }} | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x, 24.x] | |
| permissions: | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm test | |
| - run: npm run package | |
| - name: Validate updated dist | |
| run: | | |
| if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then | |
| echo "Changed dist found, please run \"npm run package\" locally and commit the changes." | |
| git diff | |
| exit 1 | |
| fi |