Skip to content

Commit

Permalink
Major refactoring of the shared models (readium#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
bilal-uslu authored Aug 12, 2021
1 parent b174dbb commit 94e518c
Show file tree
Hide file tree
Showing 108 changed files with 32,366 additions and 1,786 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/CI-shared.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI-shared
on:
push:
paths:
- 'shared/**'
- '.github/workflows/CI-shared.yml'

jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./shared
strategy:
matrix:
node: ['10.x', '12.x', '14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
with:
working-directory: shared

- name: Lint
run: yarn lint

- name: Test
run: yarn test --ci --coverage --maxWorkers=2

- name: Build
run: yarn build
14 changes: 14 additions & 0 deletions .github/workflows/size-shared.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: size-shared
on: [pull_request]
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v1
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: shared/

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.log
.DS_Store
node_modules
dist
types
coverage
19 changes: 0 additions & 19 deletions shared-models/package.json

This file was deleted.

227 changes: 0 additions & 227 deletions shared-models/src/Format/Format.ts

This file was deleted.

Loading

0 comments on commit 94e518c

Please sign in to comment.