Skip to content

Commit

Permalink
ci: upgrade yarn v4
Browse files Browse the repository at this point in the history
  • Loading branch information
NoamGaash committed Nov 13, 2023
1 parent c29b7f2 commit 6de8739
Show file tree
Hide file tree
Showing 8 changed files with 16,344 additions and 10,662 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/clean_tree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,29 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install yarn
run: npm install -g yarn
node-version: 18
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: make sure package.lock does not exist
run: rm -f package-lock.json
- name: Git Check Clean Tree
uses: ArkadiK94/[email protected]
with:
error-reason: "removing package-lock.json file"
error-reason: 'removing package-lock.json file'
- name: Install dependencies
run: yarn
- name: Git Check Clean Tree
uses: ArkadiK94/[email protected]
with:
error-reason: "yarn"
error-reason: 'yarn'
- name: Build
run: yarn build
- name: Git Check Clean Tree
uses: ArkadiK94/[email protected]
with:
error-reason: "yarn build"
error-reason: 'yarn build'
- name: Clean up
if: always()
run: npm uninstall -g yarn
run: npm uninstall -g yarn
23 changes: 12 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Run lint
run: yarn lint
- name: find circular dependencies
run: yarn madge --extensions js,ts --circular .

- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Run lint
run: yarn lint
- name: find circular dependencies
run: yarn madge --extensions js,ts --circular .
78 changes: 40 additions & 38 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,47 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30\
- uses: shallwefootball/s3-upload-action@master
name: Upload report to S3
if: always()
id: s3-report
continue-on-error: true
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: noam-gaash.co.il
source_dir: playwright-report
destination_dir: ${{ github.run_id }}/open-bus/playwright-report
- name: output link to report to the summary
if: always() && steps.s3-report.outcome == 'success'
run: echo "link to report - https://s3.amazonaws.com/noam-gaash.co.il/$GITHUB_RUN_ID/open-bus/playwright-report/index.html" >> $GITHUB_STEP_SUMMARY
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30\
- uses: shallwefootball/s3-upload-action@master
name: Upload report to S3
if: always()
id: s3-report
continue-on-error: true
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: noam-gaash.co.il
source_dir: playwright-report
destination_dir: ${{ github.run_id }}/open-bus/playwright-report
- name: output link to report to the summary
if: always() && steps.s3-report.outcome == 'success'
run: echo "link to report - https://s3.amazonaws.com/noam-gaash.co.il/$GITHUB_RUN_ID/open-bus/playwright-report/index.html" >> $GITHUB_STEP_SUMMARY

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
18 changes: 10 additions & 8 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: yarn
- name: run the tests
run: yarn test:unit
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: run the tests
run: yarn test:unit
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.1.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.1.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,6 @@
"prettier": "^2.7.1",
"storybook": "^7.5.3",
"vitest": "^0.34.6"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 6de8739

Please sign in to comment.