Skip to content

Commit

Permalink
Cleanup pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
saskliutas committed Mar 18, 2024
1 parent 49bdaa4 commit 6aa3907
Showing 1 changed file with 26 additions and 30 deletions.
56 changes: 26 additions & 30 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Continuous Integration

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
Expand All @@ -18,39 +18,35 @@ jobs:

name: Build and run tests
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.0.0
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.0.0

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

- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Install playwright browsers
run: npx playwright install
working-directory: ./app/e2e-tests
- name: ESLint
run: npm run lint

- name: ESLint
run: npm run lint
- name: Typecheck
run: npm run typecheck

- name: Typecheck
run: npm run typecheck
- name: Build presentation-rules-editor-react package
run: npm run build --prefix ./presentation-rules-editor-react

- name: Build presentation-rules-editor-react package
run: npm run build --prefix ./presentation-rules-editor-react
- name: Check unit test coverage
run: npm run test:cover --prefix ./presentation-rules-editor-react

- name: Check unit test coverage
run: npm run test:cover --prefix ./presentation-rules-editor-react

- name: Run end-to-end tests
run: npm test --prefix ./app/e2e-tests
timeout-minutes: 5
- name: Run end-to-end tests
run: npm test --prefix ./app/e2e-tests
timeout-minutes: 5

0 comments on commit 6aa3907

Please sign in to comment.