From 40942425151f5fce18c46065bfbfeaa527dcc52f Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Tue, 15 Dec 2020 07:54:58 +0100 Subject: [PATCH 1/4] Add GitHub workflow. --- .github/workflows/node.js.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..f452ceca --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: [ source ] + pull_request: + branches: [ source ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm i + + - name: Run linting + run: npm run lint + + - name: Run tests + run: npm run coverage + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 From ead275d08f470a381a6880fa0f3197c5966898b9 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Tue, 15 Dec 2020 07:56:29 +0100 Subject: [PATCH 2/4] Delete Travis yml. --- .travis.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fee3c3ca..00000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -os: - - osx -language: node_js -node_js: - - 14 -install: - - npm install -g codecov - - npm install -script: - - npm run ci - - codecov -notifications: - email: false From 39a5fa57581235f7673b92e667ad8a337ce88516 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Tue, 15 Dec 2020 07:57:35 +0100 Subject: [PATCH 3/4] Update the main branch for GitHub actions. --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f452ceca..1499ea36 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ source ] + branches: [ master ] pull_request: - branches: [ source ] + branches: [ master ] jobs: build: From d470fa13baa73475a58cecac76cd6a96818fbe46 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Tue, 15 Dec 2020 08:04:46 +0100 Subject: [PATCH 4/4] Update the Build badge to show the info from GitHub actions. --- README.es-ES.md | 2 +- README.fr-FR.md | 2 +- README.it-IT.md | 4 ++-- README.ja-JP.md | 2 +- README.ko-KR.md | 2 +- README.md | 2 +- README.pl-PL.md | 2 +- README.pt-BR.md | 2 +- README.ru-RU.md | 2 +- README.tr-TR.md | 2 +- README.zh-CN.md | 2 +- README.zh-TW.md | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.es-ES.md b/README.es-ES.md index e501de63..346c1971 100644 --- a/README.es-ES.md +++ b/README.es-ES.md @@ -1,6 +1,6 @@ # Algoritmos y Estructuras de Datos en JavaScript -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) Este repositorio contiene ejemplos basados en JavaScript de muchos diff --git a/README.fr-FR.md b/README.fr-FR.md index 70b244a3..440a854c 100644 --- a/README.fr-FR.md +++ b/README.fr-FR.md @@ -1,6 +1,6 @@ # Algorithmes et Structures de Données en JavaScript -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) Ce dépôt contient des exemples d'implémentation en JavaScript de plusieurs diff --git a/README.it-IT.md b/README.it-IT.md index d340ece7..2f7c7cc6 100644 --- a/README.it-IT.md +++ b/README.it-IT.md @@ -1,6 +1,6 @@ # Algoritmi e Strutture Dati in Javascript - -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) + +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) Questa repository contiene esempi in Javascript dei più popolari algoritmi e strutture dati . diff --git a/README.ja-JP.md b/README.ja-JP.md index 687ea124..1c145a60 100644 --- a/README.ja-JP.md +++ b/README.ja-JP.md @@ -1,6 +1,6 @@ # JavaScriptアルゴリズムとデータ構造 -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) このリポジトリには、JavaScriptベースの一般的なアルゴリズムとデータ構造に関する多数のサンプルが含まれています。 diff --git a/README.ko-KR.md b/README.ko-KR.md index 4dcd3fd3..b5be09f6 100644 --- a/README.ko-KR.md +++ b/README.ko-KR.md @@ -1,6 +1,6 @@ # JavaScript 알고리즘 및 자료 구조 -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) 이 저장소에는 많이 알려진 알고리즘 및 자료 구조의 Javascript 기반 예제를 담고 있습니다. diff --git a/README.md b/README.md index 3886d0bb..99949710 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # JavaScript Algorithms and Data Structures -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) This repository contains JavaScript based examples of many diff --git a/README.pl-PL.md b/README.pl-PL.md index 67453070..bdac1495 100644 --- a/README.pl-PL.md +++ b/README.pl-PL.md @@ -1,6 +1,6 @@ # JavaScript Algorytmy i Struktury Danych -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) To repozytorium zawiera wiele przykładów JavaScript opartych na diff --git a/README.pt-BR.md b/README.pt-BR.md index f02691c1..a9fc0d34 100644 --- a/README.pt-BR.md +++ b/README.pt-BR.md @@ -1,6 +1,6 @@ # Estrutura de Dados e Algoritmos em JavaScript -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) Este repositório contém exemplos baseados em JavaScript de muitos diff --git a/README.ru-RU.md b/README.ru-RU.md index 6317926c..9365bca1 100644 --- a/README.ru-RU.md +++ b/README.ru-RU.md @@ -1,6 +1,6 @@ # Алгоритмы и структуры данных на JavaScript -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) В этом репозитории содержатся базовые JavaScript-примеры многих популярных алгоритмов и структур данных. diff --git a/README.tr-TR.md b/README.tr-TR.md index 26055378..62db14d1 100644 --- a/README.tr-TR.md +++ b/README.tr-TR.md @@ -1,6 +1,6 @@ # JavaScript Algoritmalar ve Veri Yapıları -[![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) Bu repository JavaScript'e ait popüler diff --git a/README.zh-CN.md b/README.zh-CN.md index 45a8c8c6..064c0dbe 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,6 +1,6 @@ # JavaScript 算法与数据结构 -[![build status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) 本仓库包含了多种基于 JavaScript 的算法与数据结构。 diff --git a/README.zh-TW.md b/README.zh-TW.md index 1eba73c9..bb98d2a1 100644 --- a/README.zh-TW.md +++ b/README.zh-TW.md @@ -1,6 +1,6 @@ # JavaScript 演算法與資料結構 -[![build status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) +[![CI](https://github.com/trekhleb/javascript-algorithms/workflows/CI/badge.svg)](https://github.com/trekhleb/javascript-algorithms/actions) [![codecov](https://codecov.io/gh/trekhleb/javascript-algorithms/branch/master/graph/badge.svg)](https://codecov.io/gh/trekhleb/javascript-algorithms) 這個知識庫包含許多 JavaScript 的資料結構與演算法的基礎範例。