Skip to content

Commit

Permalink
Stop using Codecov (#1583)
Browse files Browse the repository at this point in the history
Stop using Codecov in an effort to minimize dependencies and secrets
used in this project. The integration is largely unused (at least by
me) and doesn't even quiet work (coverage for some flags isn't properly
tracked, even after resetting data).
  • Loading branch information
ericcornelissen committed Jun 8, 2024
1 parent bd313bd commit d3055b1
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 187 deletions.
84 changes: 0 additions & 84 deletions .github/codecov.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ci/cd:
- changed-files:
- any-glob-to-any-file:
- .github/workflows/*
- .github/codecov.yml
- .github/dependabot.yml
- .github/labeler.yml

Expand Down
65 changes: 0 additions & 65 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,13 @@ jobs:
egress-policy: block
allowed-endpoints: >
actions-results-receiver-production.githubapp.com:443
api.codecov.io:443
api.github.com:443
artifactcache.actions.githubusercontent.com:443
cli.codecov.io:443
codecov.io:443
github.com:443
gitlab.com:443
nodejs.org:443
objects.githubusercontent.com:443
registry.npmjs.org:443
storage.googleapis.com:443
uploader.codecov.io:443
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install Node.js
Expand All @@ -253,14 +248,6 @@ jobs:
run: npm clean-install
- name: Run breakage tests
run: npm run coverage:breakage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
if: ${{ failure() || success() }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./_reports/coverage/breakage/lcov.info
flags: breakage
test-compatibility:
name: Compatibility
runs-on: ubuntu-22.04
Expand All @@ -284,18 +271,13 @@ jobs:
egress-policy: block
allowed-endpoints: >
actions-results-receiver-production.githubapp.com:443
api.codecov.io:443
api.github.com:443
artifactcache.actions.githubusercontent.com:443
cli.codecov.io:443
codecov.io:443
github.com:443
gitlab.com:443
nodejs.org:443
objects.githubusercontent.com:443
registry.npmjs.org:443
storage.googleapis.com:443
uploader.codecov.io:443
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install Node.js
Expand All @@ -309,14 +291,6 @@ jobs:
run: npm clean-install
- name: Run compatibility tests
run: npm run coverage:compat
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
if: ${{ matrix.node-version == '22.0.0' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./_reports/coverage/compat/lcov.info
flags: compatibility
test-e2e:
name: End-to-end (${{ matrix.name }})
runs-on: ${{ matrix.os }}
Expand All @@ -340,19 +314,14 @@ jobs:
egress-policy: block
allowed-endpoints: >
actions-results-receiver-production.githubapp.com:443
api.codecov.io:443
api.github.com:443
artifactcache.actions.githubusercontent.com:443
azure.archive.ubuntu.com:80
cli.codecov.io:443
codecov.io:443
github.com:443
gitlab.com:443
nodejs.org:443
objects.githubusercontent.com:443
registry.npmjs.org:443
storage.googleapis.com:443
uploader.codecov.io:443
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install Node.js
Expand All @@ -370,14 +339,6 @@ jobs:
run: sudo apt-get --assume-yes install zsh
- name: Run end-to-end tests
run: npm run coverage:e2e
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
if: ${{ failure() || success() }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./_reports/coverage/e2e/lcov.info
flags: e2e-${{ matrix.name }}
test-integration:
name: Integration (${{ matrix.name }})
runs-on: ${{ matrix.os }}
Expand All @@ -402,19 +363,14 @@ jobs:
egress-policy: block
allowed-endpoints: >
actions-results-receiver-production.githubapp.com:443
api.codecov.io:443
api.github.com:443
artifactcache.actions.githubusercontent.com:443
azure.archive.ubuntu.com:80
cli.codecov.io:443
codecov.io:443
github.com:443
gitlab.com:443
nodejs.org:443
objects.githubusercontent.com:443
registry.npmjs.org:443
storage.googleapis.com:443
uploader.codecov.io:443
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install Node.js
Expand All @@ -432,14 +388,6 @@ jobs:
run: sudo apt-get --assume-yes install csh
- name: Run integration tests
run: npm run coverage:integration
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
if: ${{ failure() || success() }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./_reports/coverage/integration/lcov.info
flags: integration-${{ matrix.name }}
test-mutation-unit:
name: Mutation (Unit)
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -548,18 +496,13 @@ jobs:
egress-policy: block
allowed-endpoints: >
actions-results-receiver-production.githubapp.com:443
api.codecov.io:443
api.github.com:443
artifactcache.actions.githubusercontent.com:443
cli.codecov.io:443
codecov.io:443
github.com:443
gitlab.com:443
nodejs.org:443
objects.githubusercontent.com:443
registry.npmjs.org:443
storage.googleapis.com:443
uploader.codecov.io:443
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install Node.js
Expand All @@ -571,14 +514,6 @@ jobs:
run: npm clean-install
- name: Run unit tests
run: npm run coverage:unit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
if: ${{ failure() || success() }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./_reports/coverage/unit/lcov.info
flags: unit
transpile:
name: Transpile
runs-on: ubuntu-22.04
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/config-codecov.yml

This file was deleted.

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Shescape

[![GitHub Actions][ci-image]][ci-url]
[![Coverage Report][coverage-image]][coverage-url]
[![npm Package][npm-image]][npm-url]

A simple shell escape library for JavaScript. Use it to escape user-controlled
Expand Down Expand Up @@ -93,8 +92,6 @@ file's banner comment.

[ci-url]: https://github.com/ericcornelissen/shescape/actions/workflows/checks.yml
[ci-image]: https://github.com/ericcornelissen/shescape/actions/workflows/checks.yml/badge.svg
[coverage-url]: https://codecov.io/gh/ericcornelissen/shescape
[coverage-image]: https://codecov.io/gh/ericcornelissen/shescape/branch/main/graph/badge.svg
[npm-url]: https://www.npmjs.com/package/shescape
[npm-image]: https://img.shields.io/npm/v/shescape.svg
[an issue]: https://github.com/ericcornelissen/shescape/issues
Expand Down

0 comments on commit d3055b1

Please sign in to comment.