Merge pull request #404 from iHani/patch-1 #201
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: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
jobs: | |
lint: | |
name: lint | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Install dependencies | |
run: npm ci | |
- name: Run linter | |
run: npm run lint | |
test: | |
name: Test | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Print node version | |
run: node -v | |
- name: Install dependencies | |
run: npm ci | |
- name: Run build | |
run: npm run build | |
- name: Run tests | |
run: npm test | |
- name: Show expected changes in the changelog file | |
run: npm run release:test | |
changelog: | |
name: Changelog check | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Print node version | |
run: node -v | |
- name: Install dependencies | |
run: npm ci | |
- name: Show expected changes in the changelog file | |
run: npm run release:test |