Skip to content

Commit

Permalink
test something
Browse files Browse the repository at this point in the history
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
  • Loading branch information
joseph-sentry committed May 2, 2024
1 parent 2c9b40c commit 61bb092
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 62 deletions.
62 changes: 1 addition & 61 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest, macos-latest-xlarge]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
Expand All @@ -22,63 +22,3 @@ jobs:
flags: script,${{ matrix.os }}
name: codecov-script
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov (demo)
uses: ./
with:
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json
file: ./coverage/coverage-final.json
flags: demo,${{ matrix.os }}
name: codecov-demo
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov (version)
uses: ./
with:
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json
file: ./coverage/coverage-final.json
flags: version,${{ matrix.os }}
name: codecov-version
version: v0.2.0
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

run-container:
runs-on: ubuntu-latest
container: node:18
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Run tests and collect coverage
run: npm run test
- name: Upload coverage to Codecov (script)
uses: ./
with:
files: ./coverage/script/coverage-final.json
flags: script,${{ matrix.os }}
name: codecov-script
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov (demo)
uses: ./
with:
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json
file: ./coverage/coverage-final.json
flags: demo,${{ matrix.os }}
name: codecov-demo
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov (version)
uses: ./
with:
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json
file: ./coverage/coverage-final.json
flags: version,${{ matrix.os }}
name: codecov-version
version: v0.2.0
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32795,6 +32795,7 @@ const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
console.log(`${github.context.issue.repo}`);
console.log(`${github.context.payload.pull_request.body}`);
console.log(`${github.context.payload.pull_request.number}`);
setFailure('done with failure!', true);
return Promise.resolve('');
}
let token = core.getInput('token');
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/buildExec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const getToken = async (): Promise<string> => {
console.log(`${github.context.issue.repo}`);
console.log(`${github.context.payload.pull_request.body}`);
console.log(`${github.context.payload.pull_request.number}`);
setFailure(

Check warning on line 55 in src/buildExec.ts

View check run for this annotation

Codecov / codecov/patch

src/buildExec.ts#L50-L55

Added lines #L50 - L55 were not covered by tests
'done with failure!',
true,
);
return Promise.resolve('');
}
let token = core.getInput('token');
Expand Down

0 comments on commit 61bb092

Please sign in to comment.