Skip to content

Commit

Permalink
test use v4 checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii committed Jun 5, 2024
1 parent 4f641f8 commit 286616c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 63 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/pr-reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,3 @@ jobs:
recreate: true
path: code-coverage-results.md
number: ${{ github.event.workflow_run.pull_requests[0].number }}

# Configuration to run a SonarCloud analysis on main branch
sonarcloud:
name: SonarCloud Analysis
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
needs: pr_report
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download coverage artifacts with cli
run: |
gh run download ${{ github.event.workflow_run.id }} -n coverage
- name: Run sonar cloud analysis
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
11 changes: 7 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
name: Build pr

on:
push:
branches: [main]
pull_request:
branches: [main, release/**, next/**]

Expand Down Expand Up @@ -94,13 +96,14 @@ jobs:
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download coverage artifacts with cli
run: |
gh run download ${{ github.event.workflow_run.id }} -n coverage
- uses: actions/download-artifact@v2
with:
name: coverage
path: coverage/lcov.info

- name: Run sonar cloud analysis
uses: SonarSource/sonarcloud-github-action@master
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,49 +30,13 @@ jobs:
npm install -g yarn lerna
yarn
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium

- name: Set Preview Version
run: node scripts/setVersion.js --next

- name: Build 馃洜
run: yarn build
- run: yarn test
- name: Fix code coverage paths
run: |
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/lcov-report/index.html

- name: Archive coverage/lcov-report/index.html
uses: actions/upload-artifact@v2 # upload coverage lcov.info
if: always() # run this step even if previous step failed
with:
name: coverage
path: coverage/lcov-report/index.html
- name: Publish preview packages 馃殌
run: lerna exec --scope @microsoft/* -- "npm publish --tag next --access=public"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Configuration to run a SonarCloud analysis on main branch
sonarcloud:
name: SonarCloud Analysis
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download coverage artifacts with cli
run: |
gh run download ${{ github.event.workflow_run.id }} -n coverage
- name: Run sonar cloud analysis
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 286616c

Please sign in to comment.