carbon-components-svelte/.github/workflows/ci.yml
Enrico Sacchetti 058f3205e9
build: adjust ci workflow
Build npm package before testing
2023-02-11 14:02:18 -05:00

25 lines
502 B
YAML

name: CI
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, build, test, and lint the codebase
run: |
yarn
yarn build:package
yarn test:types
yarn lint