Skip to content

Merge pull request #1 from StyleShit/changeset-release/main #4

Merge pull request #1 from StyleShit/changeset-release/main

Merge pull request #1 from StyleShit/changeset-release/main #4

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
ci:
name: Lint, Test and Build
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: 20.x
- name: Install Deps
run: npm ci
- name: Run Lint
run: npm run lint
- name: Run Format
run: npm run format:check
- name: Run Test
run: npm run test:coverage
- name: Cache build
id: cache-build
uses: actions/cache@v3
env:
cache-name: cache-build
with:
path: ./dist
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Run Build
run: npm run build