mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 12:49:20 +00:00
ci: adjust run rules, use cache actions
This commit is contained in:
parent
1939e4328d
commit
55b1789163
1 changed files with 15 additions and 1 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
@ -1,14 +1,28 @@
|
|||
name: CI
|
||||
on: [pull_request]
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/cache@v2
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies and build the library
|
||||
run: |
|
||||
yarn
|
||||
yarn build:api
|
||||
yarn build:lib
|
||||
|
||||
- name: Run unit tests and validate TypeScript definitions
|
||||
run: yarn test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue