Skip to content

Commit

Permalink
Update build-pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-ba authored Aug 27, 2024
1 parent fe8f275 commit aed013a
Showing 1 changed file with 164 additions and 164 deletions.
328 changes: 164 additions & 164 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,136 +5,136 @@ on:
- main

jobs:
# prettier:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v3
# with:
# node-version: 16

# - name: Restore Lerna
# id: yarn-cache
# uses: actions/cache@v2
# with:
# path: |
# node_modules
# */*/node_modules
# key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

# - name: Install project dependencies
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: yarn

# - name: Run Lerna bootstrap
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: |
# yarn bootstrap

# - name: Run Prettier
# run: |
# yarn format

# - name: Check for uncommitted changes
# run: |
# sh scripts/porcelain.sh
# tslint:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v3
# with:
# node-version: 16

# - name: Restore Lerna
# id: yarn-cache
# uses: actions/cache@v2
# with:
# path: |
# node_modules
# */*/node_modules
# key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

# - name: Install project dependencies
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: yarn

# - name: Run Lerna bootstrap
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: |
# yarn bootstrap

# - name: Run TSLint
# run: |
# yarn workspace @telekom/scale-components lint
# unit-tests:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v3
# with:
# node-version: 16

# - name: Restore Lerna
# id: yarn-cache
# uses: actions/cache@v2
# with:
# path: |
# node_modules
# */*/node_modules
# key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

# - name: Install project dependencies
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: yarn

# - name: Run Lerna bootstrap
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: |
# yarn bootstrap

# - name: Run unit tests
# run: |
# yarn workspace @telekom/scale-components test --spec --max-workers=8
# e2e-tests:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v3
# with:
# node-version: 16

# - name: Restore Lerna
# id: yarn-cache
# uses: actions/cache@v2
# with:
# path: |
# node_modules
# */*/node_modules
# key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

# - name: Install project dependencies
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: yarn

# - name: Run Lerna bootstrap
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: |
# yarn bootstrap

# - name: Generate files
# run: |
# yarn lerna run generate

# - name: Run e2e tests
# run: |
# yarn workspace @telekom/scale-components test --e2e --max-workers=8 --debug
prettier:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16

visual-tests:
runs-on: ubuntu-latest
- name: Restore Lerna
id: yarn-cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install project dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn

- name: Run Lerna bootstrap
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn bootstrap
- name: Run Prettier
run: |
yarn format
- name: Check for uncommitted changes
run: |
sh scripts/porcelain.sh
tslint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Restore Lerna
id: yarn-cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install project dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn

- name: Run Lerna bootstrap
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn bootstrap
- name: Run TSLint
run: |
yarn workspace @telekom/scale-components lint
unit-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Restore Lerna
id: yarn-cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install project dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn

- name: Run Lerna bootstrap
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn bootstrap
- name: Run unit tests
run: |
yarn workspace @telekom/scale-components test --spec --max-workers=8
e2e-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Restore Lerna
id: yarn-cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install project dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn

- name: Run Lerna bootstrap
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn bootstrap
- name: Generate files
run: |
yarn lerna run generate
- name: Run e2e tests
run: |
yarn workspace @telekom/scale-components test --e2e --max-workers=8 --debug
visual-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up Docker Compose
Expand Down Expand Up @@ -209,40 +209,40 @@ jobs:
labels: automated pr
branch: ${{ steps.vars.outputs.branch-name }}

# uncommitted-changes:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v3
# with:
# node-version: 16

# - name: Restore Lerna
# id: yarn-cache
# uses: actions/cache@v2
# with:
# path: |
# node_modules
# */*/node_modules
# key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

# - name: Install project dependencies
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: yarn

# - name: Run Lerna bootstrap
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: |
# yarn bootstrap

# - name: Generate files
# run: |
# yarn lerna run generate

# - name: Build Components
# run: |
# yarn workspace @telekom/scale-components build

# - name: Check for uncommitted changes
# run: |
# sh scripts/porcelain.sh
uncommitted-changes:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Restore Lerna
id: yarn-cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install project dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn

- name: Run Lerna bootstrap
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn bootstrap
- name: Generate files
run: |
yarn lerna run generate
- name: Build Components
run: |
yarn workspace @telekom/scale-components build
- name: Check for uncommitted changes
run: |
sh scripts/porcelain.sh

0 comments on commit aed013a

Please sign in to comment.