Skip to content

Commit

Permalink
other: Update CI to decrease linter noise
Browse files Browse the repository at this point in the history
  • Loading branch information
olexandr-mazepa committed Jan 17, 2024
1 parent 6460037 commit 67e8c01
Showing 1 changed file with 52 additions and 24 deletions.
76 changes: 52 additions & 24 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,62 @@ on:
- main

jobs:
on-pull-request:
name: test
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
lint:
name: lint
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Print node version
run: node -v
- name: Install dependencies
run: npm ci

- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
test:
name: Test
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Run linter
run: npm run lint
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Run build
run: npm run build
- name: Print node version
run: node -v

- name: Run tests
run: npm test
- name: Install dependencies
run: npm ci

- name: Show expected changes in the changelog file
run: npm run release:test
- 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

0 comments on commit 67e8c01

Please sign in to comment.