CI for PR #79 #162
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: Continuous Integration | |
| run-name: "CI for PR #${{ github.event.number }}" | |
| on: [pull_request] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4.4.0 | |
| with: | |
| python-version: "3.11" | |
| - uses: pre-commit/action@v3.0.0 | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| cache-dependency-path: test/package-lock.json | |
| - name: Install test dependencies | |
| run: npm ci | |
| working-directory: test | |
| - name: Run unit tests | |
| run: npm run test:unit | |
| working-directory: test | |
| changelog-validation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4.4.0 | |
| with: | |
| python-version: '3.11' | |
| - name: Install click 8.2.2 until bug in 8.3.0 is resolved | |
| run: pip install click==8.2.2 | |
| - name: Install script dependencies | |
| run: pip install changelogged==0.11.3 | |
| - name: Validate Changelog | |
| run: changelogger check --fail |