Skip to content

Commit

Permalink
Merge pull request #89 from codecov/fix-ependency
Browse files Browse the repository at this point in the history
Fix dependencies
  • Loading branch information
thomasrockhu authored Jul 1, 2020
2 parents 22f6ff1 + f40f110 commit f357072
Show file tree
Hide file tree
Showing 5 changed files with 21,448 additions and 1,020 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: npm install
- name: Upload coverage to Codecov
uses: ./
with:
Expand Down
22,368 changes: 21,420 additions & 948 deletions dist/index.js

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const core = require("@actions/core");
const exec = require("@actions/exec");
const fs = require("fs");
const request = require('retry-request', {
request: require('request')
});
const request = require('requestretry');

let fail_ci;
try {
Expand All @@ -27,11 +25,10 @@ try {
fail_ci = false;
}

const retryOpts = {
retries: 3
};

request("https://codecov.io/bash", retryOpts, (error, response, body) => {
request({
url: "https://codecov.io/bash",
json: false
}, (error, response, body) => {
if (error && fail_ci) {
throw error;
} else if (error) {
Expand Down
79 changes: 20 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codecov-action",
"version": "1.0.9",
"version": "1.0.10",
"description": "Upload coverage reports to Codecov from GitHub Actions",
"main": "index.js",
"scripts": {
Expand All @@ -21,10 +21,10 @@
"dependencies": {
"@actions/core": "^1.2.0",
"@actions/exec": "^1.0.1",
"@zeit/ncc": "^0.20.5",
"@zeit/ncc": "^0.22.3",
"fs": "0.0.1-security",
"request": "^2.88.0",
"retry-request": "^4.1.1"
"requestretry": "^4.1.1"
},
"devDependencies": {}
}

0 comments on commit f357072

Please sign in to comment.