Skip to content

Merge pull request #24 from humanitec/bump-client #120

Merge pull request #24 from humanitec/bump-client

Merge pull request #24 from humanitec/bump-client #120

Workflow file for this run

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