Skip to content

Commit

Permalink
Set up the CI workflow to run tests on @stlite/desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Sep 30, 2022
1 parent 329cf9a commit 5c95b8c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
tornado-e2e: ${{ steps.filter.outputs.tornado-e2e }}
mountable: ${{ steps.filter.outputs.mountable }}
sharing-common: ${{ steps.filter.outputs.sharing-common }}
desktop: ${{ steps.filter.outputs.desktop }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
Expand All @@ -27,6 +28,8 @@ jobs:
- 'packages/mountable/**/*'
sharing-common:
- 'packages/sharing-common/**/*'
desktop:
- 'packages/desktop/**/*'
test-stlite-kernel:
needs: changes
Expand Down Expand Up @@ -198,6 +201,38 @@ jobs:
yarn check:prettier
- run: yarn test

test-desktop:
needs: changes
if: ${{ needs.changes.outputs.desktop == 'true' }}

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [16.x]

defaults:
run:
working-directory: packages/desktop

steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- name: Lint
run: |
yarn check:eslint
yarn check:prettier
- run: yarn typecheck
- run: yarn test

build-mountable:
if: ${{ ! failure() }} # This job should run even if the depending jobs are skipped, but not when those jobs failed: https://qiita.com/abetomo/items/d9ede7dbeeb24f723fc5#%E8%A8%AD%E5%AE%9A%E4%BE%8B4
needs: [test-stlite-kernel, test-tornado-e2e, test-mountable]
Expand Down

0 comments on commit 5c95b8c

Please sign in to comment.