Skip to content

Commit

Permalink
Th/remove gpg (#88)
Browse files Browse the repository at this point in the history
* fix: remove gpg

* fix: run install hooks

* fix: tests

* fix: small change to force test results
  • Loading branch information
thomasrockhu-codecov authored Sep 13, 2024
1 parent 2b4994e commit 7c17a47
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 515 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Workflow for Codecov Action
on: [pull_request]

jobs:
run:
permissions: read-all
Expand All @@ -18,20 +19,23 @@ jobs:
- name: Upload test results to Codecov (calculator)
uses: ./
with:
fail_ci_if_error: true
files: ./demo/calculator/junit.xml
flags: ${{ matrix.os }}
verbose: true
token: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Upload test results to Codecov (demo)
uses: ./
with:
fail_ci_if_error: true
files: ./demo/coverage-test/junit.xml
flags: ${{ matrix.os }}
verbose: true
token: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Upload test results to Codecov (calculator) (staging)
uses: ./
with:
fail_ci_if_error: true
files: ./demo/calculator/junit.xml
flags: ${{ matrix.os }}
verbose: true
Expand All @@ -40,8 +44,9 @@ jobs:
- name: Upload test results to Codecov (demo) (staging)
uses: ./
with:
fail_ci_if_error: true
url: ${{ secrets.CODECOV_STAGING_URL }}
token: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }}
files: ./demo/coverage-test/junit.xml
flags: ${{ matrix.os }}
verbose: true
verbose: true
4 changes: 2 additions & 2 deletions demo/calculator/calculator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import Calculator from './calculator';

test('adds 2 + 3 to equal 5', () => {
const calc = new Calculator();
expect(calc.add(2, 3)).toBe(4);
expect(calc.add(2, 3)).toBe(5);
});

test('subtracts 2 - 3 to equal -1', () => {
const calc = new Calculator();
expect(calc.subtract(2, 3)).toBe(1);
expect(calc.subtract(2, 3)).toBe(-1);
});
4 changes: 2 additions & 2 deletions demo/coverage-test/coverage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import Coverage from './coverage';

test('test uncovered if', () => {
const coverageObj = new Coverage();
expect(coverageObj.uncovered_if()).toEqual(true);
expect(coverageObj.uncovered_if()).toEqual(false);
});

test('fully covered', () => {
const coverageObj = new Coverage();
expect(coverageObj.fully_covered()).toEqual(false);
expect(coverageObj.fully_covered()).toEqual(true);
});
Loading

0 comments on commit 7c17a47

Please sign in to comment.