Skip to content

Merge pull request #404 from iHani/patch-1 #201

Merge pull request #404 from iHani/patch-1

Merge pull request #404 from iHani/patch-1 #201

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