Skip to content

Commit

Permalink
fix: update packages (#118)
Browse files Browse the repository at this point in the history
* fix: update packages

* fix: typescript issue

* fix: run formatter

* feat: update example to use typescript

* fix: remove example unit test

* fix: update rollup dependencies

* fix: add core-js to dev dependencies

* ci: move to github actions

* fix: semantic-release branches

* fix: add missing size limit package

* fix: packages and example deployment

* fix: more config on package.json

* fix: workflow syntax
'

* fix: use npx for codecov

* ci: downgrade size-limit

* fix: size-limit file names
  • Loading branch information
armand1m authored Jul 4, 2021
1 parent 4db962e commit 7b907e8
Show file tree
Hide file tree
Showing 36 changed files with 21,941 additions and 51,522 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI
on: [push]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['12.x', '14.x', '16.x']
os: [ubuntu-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

- name: Lint
run: yarn lint

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

- name: Coverage
run: npx codecov -f coverage/*.json

- name: Build
run: yarn build

- name: Pack Inspect
run: yarn pack:inspect

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release

- name: Deploy Example
if: ${{ github.ref == 'refs/heads/master' }}
run: yarn deploy-example
12 changes: 12 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: size
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 }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ yarn-error.log*
.rpt*
coverage

yarn.lock
*.tgz
5 changes: 0 additions & 5 deletions .prettierrc.json

This file was deleted.

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

23 changes: 23 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading

0 comments on commit 7b907e8

Please sign in to comment.