Skip to content

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Apr 5, 2023
1 parent ecebbfd commit 06f2691
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 124 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
116 changes: 0 additions & 116 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]> (https://www.bergnet.org/people/bergi/card#me)",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 06f2691

Please sign in to comment.