Merge pull request #27 from humanitec/update-deps #127
This file contains 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: ${{ secrets.HUMANITEC_ORG }} | |
HUMANITEC_TOKEN: ${{ secrets.HUMANITEC_TOKEN }} | |
HUMANITEC_APP: ${{ secrets.HUMANITEC_APP }} | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
- 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 |