Skip to content

Commit

Permalink
[MS-780] ci: Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrgrundas committed Oct 16, 2024
1 parent 6871a24 commit fb71cd6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Code quality

on:
pull_request:
branches: ["*"]

jobs:
tests-and-linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.10.0
run_install: false

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm --version && pnpm install --frozen-lockfile

- name: Run tests
run: pnpm test

- name: Check coverage
run: pnpm test:coverage.avg
11 changes: 1 addition & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linters and tests
name: Tests

on:
pull_request:
Expand All @@ -25,14 +25,5 @@ jobs:
- name: Install dependencies
run: pnpm --version && pnpm install --frozen-lockfile

- name: Check prettier
run: pnpm lint:prettier

- name: Check eslint
run: pnpm lint:eslint

- name: Check types
run: pnpm lint:tsc

- name: Run tests
run: pnpm test

0 comments on commit fb71cd6

Please sign in to comment.