Skip to content

Commit

Permalink
fix: PR workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 committed Sep 17, 2024
1 parent e1fe428 commit f92b2d8
Showing 1 changed file with 55 additions and 3 deletions.
58 changes: 55 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,29 @@ jobs:
node-version: 18
-
name: "Install dependencies"
run: yarn
run: yarn install --force
-
name: "Check dependencies usage restrictions"
run: yarn license:check

dash-licenses-yarn-v1:
runs-on: ubuntu-22.04
if: ${{ github.base_ref == 'main' }}
steps:
-
name: "Checkout Che Dashboard source code"
uses: actions/checkout@v4
-
name: "Use Node 18"
uses: actions/setup-node@v4
with:
node-version: 18
-
name: "Switch to Yarn 1"
run: scripts/yarn/change_package_manager.sh
-
name: "Install dependencies"
run: yarn install --force
-
name: "Check dependencies usage restrictions"
run: yarn license:check
Expand All @@ -56,7 +78,7 @@ jobs:
node-version: ${{ matrix.node-version }}
-
name: "Install dependencies"
run: yarn
run: yarn install --force
-
name: "Workspace creation time check"
run: yarn test:check
Expand All @@ -77,7 +99,37 @@ jobs:
node-version: ${{ matrix.node-version }}
-
name: "Install dependencies"
run: yarn
run: yarn install --force
-
name: "Build"
run: yarn build
-
name: "Run linters"
run: yarn lint:check
-
name: "Run unit tests"
run: yarn test

build-and-test-yarn-v1:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
-
name: "Checkout Che Dashboard source code"
uses: actions/checkout@v4
-
name: "Use Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
-
name: "Switch to Yarn 1"
run: scripts/yarn/change_package_manager.sh
-
name: "Install dependencies"
run: yarn install --force
-
name: "Build"
run: yarn build
Expand Down

0 comments on commit f92b2d8

Please sign in to comment.