Merge pull request #326 from adobe/upgradeVega #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run SonarCloud on main | |
# This action runs when a branch has been merged to main. | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Dependencies 📦 | |
run: yarn install | |
- name: Lint 🧼 | |
run: yarn lint | |
- name: Test 🧪 | |
run: yarn test | |
- name: SonarCloud 🔬 | |
uses: sonarSource/sonarcloud-github-action@v2.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |