mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
35 lines
747 B
YAML
35 lines
747 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/cache@v3
|
|
id: yarn-cache
|
|
with:
|
|
path: "**/node_modules"
|
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- name: Install dependencies, build, test, and lint the codebase
|
|
run: |
|
|
yarn
|
|
yarn build:lib
|
|
yarn test:types
|
|
yarn lint
|
|
|
|
deploy-docs:
|
|
if: github.ref == 'refs/heads/master'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Trigger deploy
|
|
env:
|
|
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
|
|
run: |
|
|
curl -X GET "$deploy_url"
|