mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 09:51:36 +00:00
29 lines
703 B
YAML
29 lines
703 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, build, test, and lint the codebase
|
|
run: |
|
|
npm install
|
|
npm run build:lib
|
|
npm run test:types
|
|
npm run lint
|
|
|
|
- name: Trigger deploy
|
|
if: github.ref == 'refs/heads/master'
|
|
env:
|
|
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
|
|
run: |
|
|
curl "$deploy_url"
|