From 06f26915f8e74230297a0544932d35c9bebbe997 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Wed, 5 Apr 2023 09:15:23 +0200 Subject: [PATCH] ci: update actions --- .github/workflows/tests.yml | 20 +++++-- package-lock.json | 116 ------------------------------------ package.json | 4 +- 3 files changed, 16 insertions(+), 124 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce51a31..a8e86a4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,8 +6,8 @@ jobs: e2e-tests: runs-on: [ubuntu-latest] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 - run: npm i - run: docker-compose up -d blog - run: npx wait-on http://localhost:9000 -t 30000 @@ -21,15 +21,23 @@ jobs: runs-on: [ ubuntu-latest ] strategy: matrix: - node: [ 12, 14 ] + node: [ 12, 14, 16, 18 ] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - run: npm i - run: npm test - name: Codecov - uses: codecov/codecov-action@v1.0.5 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - run: npm ci + - run: npm run lint diff --git a/package-lock.json b/package-lock.json index 042cc16..a02385a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,6 @@ "@rdfjs/fetch": "^2.1.0", "@zazuko/rdf-vocabularies": "^2019.10.22", "alcaeus": "^1.0.0-beta.4", - "codecov": "^3.6.5", "express-as-promise": "0.0.2", "mocha": "^6.2.2", "node-fetch": "^2.6.0", @@ -626,14 +625,6 @@ "node": ">=6" } }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, "node_modules/@tpluscode/rdf-ns-builders": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@tpluscode/rdf-ns-builders/-/rdf-ns-builders-2.0.1.tgz", @@ -806,17 +797,6 @@ "node": ">=0.4.0" } }, - "node_modules/agent-base": { - "version": "6.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, "node_modules/ajv": { "version": "6.12.6", "license": "MIT", @@ -1009,13 +989,6 @@ "sprintf-js": "~1.0.2" } }, - "node_modules/argv": { - "version": "0.0.2", - "dev": true, - "engines": { - "node": ">=0.6.10" - } - }, "node_modules/array-flatten": { "version": "1.1.1", "license": "MIT" @@ -1581,24 +1554,6 @@ "integrity": "sha512-67ueh2IRGst/51p0n6FvPrnRjAGHY5F8xdjkgrYE7DDzpJe6qA07RYQ9VcoUeo5ATOjSOiWpSL3SWBRRbempMw==", "peer": true }, - "node_modules/codecov": { - "version": "3.8.1", - "dev": true, - "license": "MIT", - "dependencies": { - "argv": "0.0.2", - "ignore-walk": "3.0.3", - "js-yaml": "3.14.0", - "teeny-request": "6.0.1", - "urlgrey": "0.4.4" - }, - "bin": { - "codecov": "bin/codecov" - }, - "engines": { - "node": ">=4.0" - } - }, "node_modules/color-convert": { "version": "1.9.3", "dev": true, @@ -3390,19 +3345,6 @@ "node": ">= 0.6" } }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/http-signature": { "version": "1.2.0", "license": "MIT", @@ -3416,26 +3358,6 @@ "npm": ">=1.3.7" } }, - "node_modules/https-proxy-agent": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "5", - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/https-proxy-agent/node_modules/agent-base": { - "version": "5.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6.0.0" - } - }, "node_modules/iconv-lite": { "version": "0.4.24", "license": "MIT", @@ -3459,14 +3381,6 @@ "dev": true, "license": "ISC" }, - "node_modules/ignore-walk": { - "version": "3.0.3", - "dev": true, - "license": "ISC", - "dependencies": { - "minimatch": "^3.0.4" - } - }, "node_modules/import-fresh": { "version": "3.3.0", "dev": true, @@ -6236,14 +6150,6 @@ "node": ">= 0.6" } }, - "node_modules/stream-events": { - "version": "1.0.5", - "dev": true, - "license": "MIT", - "dependencies": { - "stubs": "^3.0.0" - } - }, "node_modules/string_decoder": { "version": "1.3.0", "license": "MIT", @@ -6346,11 +6252,6 @@ "node": ">=0.10.0" } }, - "node_modules/stubs": { - "version": "3.0.0", - "dev": true, - "license": "MIT" - }, "node_modules/superagent": { "version": "3.8.3", "dev": true, @@ -6475,18 +6376,6 @@ "node": ">=6" } }, - "node_modules/teeny-request": { - "version": "6.0.1", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "http-proxy-agent": "^4.0.0", - "https-proxy-agent": "^4.0.0", - "node-fetch": "^2.2.0", - "stream-events": "^1.0.5", - "uuid": "^3.3.2" - } - }, "node_modules/term-size": { "version": "2.2.1", "dev": true, @@ -6923,11 +6812,6 @@ "node": ">=4" } }, - "node_modules/urlgrey": { - "version": "0.4.4", - "dev": true, - "license": "BSD-2-Clause" - }, "node_modules/util-deprecate": { "version": "1.0.2", "license": "MIT" diff --git a/package.json b/package.json index dc61bcc..2a7e513 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "version": "0.6.6", "main": "index.js", "scripts": { - "test": "standard && nyc --reporter=lcov mocha", + "lint": "standard", + "test": "nyc --reporter=lcov mocha", "blog": "(cd examples/blog; bash init.sh --keep; DEBUG=hydra-box* nodemon --ext ttl,js,json --exec node --inspect=0.0.0.0:9001 server.js)" }, "author": "Thomas Bergwinkl (https://www.bergnet.org/people/bergi/card#me)", @@ -42,7 +43,6 @@ "@rdfjs/fetch": "^2.1.0", "@zazuko/rdf-vocabularies": "^2019.10.22", "alcaeus": "^1.0.0-beta.4", - "codecov": "^3.6.5", "express-as-promise": "0.0.2", "mocha": "^6.2.2", "node-fetch": "^2.6.0",