Skip to content

Commit

Permalink
Use GitHub actions as CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Oct 14, 2019
1 parent 54f9747 commit 8a6bad5
Show file tree
Hide file tree
Showing 12 changed files with 288 additions and 164 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Node CI

on: [push]

jobs:
install:
runs-on: ubuntu-latest

strategy:
matrix:
node: [8, 10, 12]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node: ${{ matrix.node }}
- name: Install Yarn
run: npm install --global yarn
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Bundlesize
run: yarn bundlesize
env:
BUNDLESIZE_GITHUB_TOKEN: ${{ secrets.BUNDLESIZE_GITHUB_TOKEN }}
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

27 changes: 12 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@
],
"scripts": {
"lint": "eslint packages/*/{src,test}",
"pretest": "npm run build",
"test-only": "lerna run --parallel test",
"test": "npm run test-only",
"check": "run-s lint test",
"test": "lerna run --parallel test",
"clean": "lerna run --parallel clean && lerna clean --yes && rimraf node_modules",
"build": "lerna run build",
"counter": "npm run start --prefix examples/counter",
"error-demo": "npm run start --prefix examples/error-demo",
"cancellable-counter": "npm run start --prefix examples/cancellable-counter",
"shop": "npm run start --prefix examples/shopping-cart",
"async": "npm run start --prefix examples/async",
"real-world": "npm run start --prefix examples/real-world",
"build": "lerna run --parallel build",
"counter": "yarn start --prefix examples/counter",
"error-demo": "yarn start --prefix examples/error-demo",
"cancellable-counter": "yarn start --prefix examples/cancellable-counter",
"shop": "yarn start --prefix examples/shopping-cart",
"async": "yarn start --prefix examples/async",
"real-world": "yarn start --prefix examples/real-world",
"docs:clean": "rimraf _book",
"docs:prepare": "gitbook install",
"docs:build": "npm run docs:prepare && gitbook build -g redux-saga/redux-saga",
"docs:watch": "npm run docs:prepare && gitbook serve",
"docs:publish": "npm run docs:clean && npm run docs:build && cp CNAME _book && touch _book/.nojekyll && gh-pages -d _book -r git@github.com:redux-saga/redux-saga.git -m 'update book' -t",
"docs:build": "yarn docs:prepare && gitbook build -g redux-saga/redux-saga",
"docs:watch": "yarn docs:prepare && gitbook serve",
"docs:publish": "yarn docs:clean && yarn docs:build && cp CNAME _book && touch _book/.nojekyll && gh-pages -d _book -r git@github.com:redux-saga/redux-saga.git -m 'update book' -t",
"bundlesize": "lerna run --parallel bundlesize"
},
"repository": {
Expand Down Expand Up @@ -57,7 +54,7 @@
"babel-eslint": "^8.2.1",
"babel-loader": "^8.0.6",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"bundlesize": "^0.11.0",
"bundlesize": "^0.18.0",
"cross-env": "^6.0.3",
"eslint": "^4.17.0",
"eslint-plugin-react": "^7.16.0",
Expand Down
9 changes: 3 additions & 6 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@
"types"
],
"scripts": {
"test": "npm run test:types && npm run test:jest",
"test": "yarn test:types && yarn test:jest",
"test:jest": "jest",
"test:types": "dtslint types",
"prebundlesize": "npm run build",
"bundlesize": "bundlesize",
"clean": "rimraf dist",
"prebuild": "npm run clean",
"prebuild": "yarn clean",
"build": "rollup -c",
"postbuild": "node ./scripts/createProxyCjsEntries.js",
"prepare": "npm run build",
"prepare": "yarn build",
"preversion": "npm test"
},
"repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/core",
Expand Down Expand Up @@ -60,7 +58,6 @@
"@babel/preset-env": "^7.6.3",
"babel-7-jest": "^21.3.3",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"bundlesize": "^0.11.0",
"dtslint": "^0.9.0",
"jest": "^23.5.0",
"lerna-alias": "^3.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/deferred/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "npm run clean",
"prebuild": "yarn clean",
"build": "rollup -c",
"prepare": "npm run build"
"prepare": "yarn build"
},
"repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/deferred",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/delay-p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "npm run clean",
"prebuild": "yarn clean",
"build": "rollup -c",
"prepare": "npm run build"
"prepare": "yarn build"
},
"repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/delay-p",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/is/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "npm run clean",
"prebuild": "yarn clean",
"build": "rollup -c",
"prepare": "npm run build"
"prepare": "yarn build"
},
"repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/is",
"keywords": [],
Expand Down
8 changes: 4 additions & 4 deletions packages/redux-saga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"scripts": {
"bundlesize": "bundlesize",
"clean": "rimraf dist",
"prebuild": "npm run clean",
"prebuild": "yarn clean",
"build": "rollup -c",
"prepare": "npm run build"
"prepare": "yarn build"
},
"repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/core",
"keywords": [
Expand All @@ -28,7 +28,7 @@
],
"bundlesize": [
{
"path": "./dist/redux-saga.min.umd.js",
"path": "./dist/redux-saga.umd.min.js",
"maxSize": "6.5 Kb"
}
],
Expand All @@ -52,7 +52,7 @@
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.6.3",
"bundlesize": "^0.11.0",
"bundlesize": "^0.18.0",
"lerna-alias": "^3.0.2",
"rimraf": "^3.0.0",
"rollup": "^1.23.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/simple-saga-monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "npm run clean",
"prebuild": "yarn clean",
"build": "rollup -c",
"prepare": "npm run build"
"prepare": "yarn build"
},
"repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/simple-saga-monitor",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/symbols/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "npm run clean",
"prebuild": "yarn clean",
"build": "rollup -c",
"prepare": "npm run build"
"prepare": "yarn build"
},
"repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/symbols",
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions packages/testing-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"types"
],
"scripts": {
"test": "npm run test:types && npm run test:jest",
"test": "yarn test:types && yarn test:jest",
"test:jest": "jest",
"test:types": "dtslint types",
"clean": "rimraf dist",
"prebuild": "npm run clean",
"prebuild": "yarn clean",
"build": "rollup -c",
"prepare": "npm run build",
"prepare": "yarn build",
"preversion": "npm test"
},
"repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/testing-utils",
Expand Down
Loading

0 comments on commit 8a6bad5

Please sign in to comment.