From 7bbf398fca498566775df7b396068b7855f8738d Mon Sep 17 00:00:00 2001 From: MrOrz Date: Mon, 7 Jun 2021 02:07:49 +0800 Subject: [PATCH 1/2] Use master branch as staging branch --- .github/workflows/build-and-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index f40378ce..03e22fb9 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -7,7 +7,7 @@ on: tags: - release/* branches: - - dev + - master # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 80f018836d649810b908ee78902e0af7ad3650a6 Mon Sep 17 00:00:00 2001 From: MrOrz Date: Wed, 9 Jun 2021 21:05:42 +0800 Subject: [PATCH 2/2] Update badge and coveralls setup --- .github/workflows/ci.yml | 6 ++-- README.md | 3 +- package-lock.json | 76 ---------------------------------------- package.json | 1 - 4 files changed, 6 insertions(+), 80 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3aca554..220a4e51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,5 +42,7 @@ jobs: - run: npm run i18n:validate - run: npm run cofactsapi - run: npm run test --ignore-scripts -- --coverage - # - name: Update coveralls - # run: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js + - name: Update coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 973430d7..8c01e6b1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # rumors-line-bot Line bot that checks if a message contains internet rumor. -[![Build Status](https://travis-ci.org/cofacts/rumors-line-bot.svg?branch=dev)](https://travis-ci.org/cofacts/rumors-line-bot) [![Coverage Status](https://coveralls.io/repos/github/cofacts/rumors-line-bot/badge.svg?branch=dev)](https://coveralls.io/github/cofacts/rumors-line-bot?branch=dev) +[![CI test](https://github.com/cofacts/rumors-line-bot/actions/workflows/ci.yml/badge.svg)](https://github.com/cofacts/rumors-line-bot/actions/workflows/ci.yml) + [![Coverage Status](https://coveralls.io/repos/github/cofacts/rumors-line-bot/badge.svg?branch=master)](https://coveralls.io/github/cofacts/rumors-line-bot?branch=master) ## State diagram & Documents diff --git a/package-lock.json b/package-lock.json index 0327b3da..d7957fb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,7 +64,6 @@ "babel-plugin-module-resolver": "^4.0.0", "compression-webpack-plugin": "^6.1.1", "core-js": "^3.6.4", - "coveralls": "^3.0.0", "css-loader": "^5.2.6", "dotenv": "^6.2.0", "eslint": "^7.0.0", @@ -9167,32 +9166,6 @@ "node": ">=8" } }, - "node_modules/coveralls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.2.tgz", - "integrity": "sha512-Tv0LKe/MkBOilH2v7WBiTBdudg2ChfGbdXafc/s330djpF3zKOmuehTeRwjXWc7pzfj9FrDUTA7tEx6Div8NFw==", - "dev": true, - "dependencies": { - "growl": "~> 1.10.0", - "js-yaml": "^3.11.0", - "lcov-parse": "^0.0.10", - "log-driver": "^1.2.7", - "minimist": "^1.2.0", - "request": "^2.85.0" - }, - "bin": { - "coveralls": "bin/coveralls.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/coveralls/node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, "node_modules/cp-file": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/cp-file/-/cp-file-6.2.0.tgz", @@ -13407,15 +13380,6 @@ "graphql": "^0.13.0 || ^14.0.0 || ^15.0.0" } }, - "node_modules/growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true, - "engines": { - "node": ">=4.x" - } - }, "node_modules/growly": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", @@ -15988,12 +15952,6 @@ "node": ">=6" } }, - "node_modules/lcov-parse": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz", - "integrity": "sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=", - "dev": true - }, "node_modules/left-pad": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", @@ -33867,28 +33825,6 @@ } } }, - "coveralls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.2.tgz", - "integrity": "sha512-Tv0LKe/MkBOilH2v7WBiTBdudg2ChfGbdXafc/s330djpF3zKOmuehTeRwjXWc7pzfj9FrDUTA7tEx6Div8NFw==", - "dev": true, - "requires": { - "growl": "~> 1.10.0", - "js-yaml": "^3.11.0", - "lcov-parse": "^0.0.10", - "log-driver": "^1.2.7", - "minimist": "^1.2.0", - "request": "^2.85.0" - }, - "dependencies": { - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - } - } - }, "cp-file": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/cp-file/-/cp-file-6.2.0.tgz", @@ -37311,12 +37247,6 @@ "uuid": "^3.1.0" } }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, "growly": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", @@ -39389,12 +39319,6 @@ "invert-kv": "^2.0.0" } }, - "lcov-parse": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz", - "integrity": "sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=", - "dev": true - }, "left-pad": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", diff --git a/package.json b/package.json index 2d7a9d51..1c90b825 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,6 @@ "babel-plugin-module-resolver": "^4.0.0", "compression-webpack-plugin": "^6.1.1", "core-js": "^3.6.4", - "coveralls": "^3.0.0", "css-loader": "^5.2.6", "dotenv": "^6.2.0", "eslint": "^7.0.0",