Skip to content

chore(deps-dev): bump svelte-highlight from 7.2.0 to 7.2.1 #284

chore(deps-dev): bump svelte-highlight from 7.2.0 to 7.2.1

chore(deps-dev): bump svelte-highlight from 7.2.0 to 7.2.1 #284

Workflow file for this run

name: Build and Test
on:
push:
branches:
- '*'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache NPM modules
id: npm-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci
- name: Run test suite
run: npm run lint
# - name: SonarCloud Scan
# uses: SonarSource/sonarcloud-github-action@v1.6
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# with:
# args: >
# -Dsonar.organization=robbrazier
# -Dsonar.projectKey=RobBrazier_svelte-awesome
# -Dsonar.sources=src
# -Dsonar.tests=tests
build_components:
runs-on: ubuntu-latest
needs: linting
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache NPM modules
id: npm-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci
- name: Build Component
run: npm run package
- name: Build Example
run: npm run build
publish:
needs: build_components
if: github.repository == 'RobBrazier/svelte-awesome' && (github.ref_name == 'master')
uses: ./.github/workflows/publish.yaml