From 191e4a2e107e2b6d738abbdcf0b79e1fcc7acbba Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 6 Nov 2020 17:38:14 +0100 Subject: [PATCH] Replace Travis CI with GitHub Actions --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 13 ------------- README.md | 2 +- 3 files changed, 31 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ec3783f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean install of node dependencies and run tests +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: CI + +on: + push: + branches: [ '*' ] + pull_request: + branches: [ master ] + +jobs: + test: + name: Test + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '14.x' + + - name: Install dependencies + run: yarn --immutable + + - name: Run tests + run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c36c0fd..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -env: - global: - - CC_TEST_REPORTER_ID=9834e308a721e27e2077842b343c9b03bbc95bb076c9c78327a22c6507c66f13 -language: node_js -node_js: "node" -before_script: - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - ./cc-test-reporter before-build -script: - - yarn test -after_script: - - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT diff --git a/README.md b/README.md index 284792d..31da314 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![npm](https://img.shields.io/npm/v/@wojtekmaj/react-t.svg)](https://www.npmjs.com/package/@wojtekmaj/react-t) ![downloads](https://img.shields.io/npm/dt/@wojtekmaj/react-t.svg) [![build](https://travis-ci.com/wojtekmaj/react-t.svg?branch=master)](https://travis-ci.com/wojtekmaj/react-t) ![dependencies](https://img.shields.io/david/wojtekmaj/react-t.svg) ![dev dependencies](https://img.shields.io/david/dev/wojtekmaj/react-t.svg) [![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest) +[![npm](https://img.shields.io/npm/v/@wojtekmaj/react-t.svg)](https://www.npmjs.com/package/@wojtekmaj/react-t) ![downloads](https://img.shields.io/npm/dt/@wojtekmaj/react-t.svg) [![CI](https://github.com/wojtekmaj/react-t/workflows/CI/badge.svg)](https://github.com/wojtekmaj/react-t/actions) ![dependencies](https://img.shields.io/david/wojtekmaj/react-t.svg) ![dev dependencies](https://img.shields.io/david/dev/wojtekmaj/react-t.svg) [![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest) # React-T -- 2.51.2