diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eda360f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI +on: + - push + - pull_request + +jobs: + ci: + name: "Build & Test (React v${{ matrix.react_version}})" + runs-on: ubuntu-latest + strategy: + matrix: + react_version: + - "0.14.9" + - "15.0" + - "15" + - "16.0" + - "16" + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "lts/*" + cache: 'yarn' + - run: yarn install + - run: yarn add react@${{ matrix.react_version }} + - run: yarn list --pattern 'react' + - run: yarn run pretest + - run: yarn run tests-only + - run: yarn run build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 14396c5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: node_js -os: - - linux -node_js: - - "lts/*" -cache: - directories: - - "node_modules" -notifications: - email: false -matrix: - fast_finish: true - include: - - node_js: "lts/*" - env: PRETEST=true - - node_js: "lts/*" - env: BUILD=true -before_script: - - 'if [ -n "${REACT-}" ]; then npm install --no-save "react@~${REACT}" "react-dom@~${REACT}"; fi' -script: - - 'if [ -n "${PRETEST-}" ]; then yarn run pretest ; fi' - - 'if [ -n "${TEST-}" ]; then yarn run tests-only ; fi' - - 'if [ -n "${BUILD-}" ]; then yarn run build ; fi' -sudo: false -env: - - REACT=0.14.9 - - REACT=15.0 - - REACT=15 - - REACT=16.0 - - REACT=16 \ No newline at end of file