mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- "**.md"
|
|
- "docs/**"
|
|
- "examples/**"
|
|
push:
|
|
branches: [master]
|
|
paths-ignore:
|
|
- "**.md"
|
|
- "docs/**"
|
|
- "examples/**"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: macos-15-xlarge
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22.x"
|
|
cache: "npm"
|
|
- run: npm ci
|
|
- run: npm run lint
|
|
|
|
test:
|
|
runs-on: macos-15-xlarge
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22.x"
|
|
cache: "npm"
|
|
- run: npm ci
|
|
- run: npm run test
|
|
|
|
types:
|
|
runs-on: macos-15-xlarge
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22.x"
|
|
cache: "npm"
|
|
- run: npm ci
|
|
- run: npm run test:src-types
|
|
- run: npm run test:types
|
|
|
|
deploy-docs:
|
|
if: github.ref == 'refs/heads/master'
|
|
needs: [lint, test, types]
|
|
runs-on: macos-15-xlarge
|
|
steps:
|
|
- name: Trigger deploy
|
|
env:
|
|
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
|
|
run: curl -f "$deploy_url"
|