Skip to content

Commit

Permalink
Merge pull request #30 from tiago154/change-integration-coveralls-to-…
Browse files Browse the repository at this point in the history
…github-actions

Change integration coveralls to GitHub actions
  • Loading branch information
tiago154 authored Oct 6, 2024
2 parents e5b1159 + f4c5ae7 commit 72eed04
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 217 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Coveralls Integration

on: [push, pull_request]

jobs:
test-and-report:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run tests and collect coverage
run: npm run test:coverage -- -u
env:
CI: true

- name: Upload coverage to Coveralls
run: npx [email protected] < ./coverage/lcov.info
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v1.5.2 / 2024-10-06

* Use coveralls via github actions and remove integration via travis

### v1.5.1 / 2024-10-06

* Change the package that updates coveralls information and thus remove the vulnerabilities of the old package
Expand Down
207 changes: 0 additions & 207 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "graphql-import-files",
"version": "1.5.1",
"version": "1.5.2",
"description": "Light and easy package that will load .graphql files and use them with syntax highlighting.",
"repository": "[email protected]:tiago154/graphql-import-files.git",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"test": "jest",
"coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
"test:coverage": "jest --coverage",
"build": "tsc",
"coverage": "npx http-server coverage/lcov-report",
"lint": "eslint ./src --ext .ts",
Expand Down Expand Up @@ -35,7 +35,6 @@
"@types/jest": "^29.5.5",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"coveralls-next": "^4.2.1",
"eslint": "^8.50.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
Expand Down

0 comments on commit 72eed04

Please sign in to comment.