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 26, 2024
1 parent 70aa948 commit cad7b33
Showing 1 changed file with 128 additions and 128 deletions.
256 changes: 128 additions & 128 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,130 +5,130 @@ 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

# - 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

visual-tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -175,10 +175,10 @@ jobs:
run: |
yarn workspace @telekom/scale-visual-tests copy
# - name: Ensure docker-compose exists and has correct permissions
# run: |
# sudo touch /usr/bin/docker-compose
# sudo chmod 755 /usr/bin/docker-compose
- name: Ensure docker-compose exists and has correct permissions
run: |
touch /usr/bin/docker-compose
chmod 755 /usr/bin/docker-compose
- name: Run visual tests
id: visual-tests
Expand Down

0 comments on commit cad7b33

Please sign in to comment.