mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
The current lint script runs prettier on the codebase, but it does not error. Ideally, formatting should run in Git hooks and error in CI. For now, omit this step to speed up builds.
31 lines
698 B
YAML
31 lines
698 B
YAML
on:
|
|
pull_request:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/cache@v4
|
|
id: npm-cache
|
|
with:
|
|
path: "**/node_modules"
|
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Build the codebase
|
|
run: npm run build:lib
|
|
|
|
- name: Test types
|
|
run: npm run test:types
|
|
|
|
- name: Trigger deploy
|
|
if: github.ref == 'refs/heads/master'
|
|
env:
|
|
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
|
|
run: |
|
|
curl "$deploy_url"
|