Skip to content

Commit

Permalink
add codecov to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
carafelix committed Jun 20, 2024
1 parent da24872 commit c5d0993
Show file tree
Hide file tree
Showing 4 changed files with 928 additions and 12 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ jobs:
runs-on: ubuntu-latest
name: tests
env:
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}
XATA_DB: ${{secrets.XATA_DB}}
SUDO_SECRET: ${{ secrets.SUDO_SECRET }}
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}
XATA_DB: ${{secrets.XATA_DB}}
SUDO_SECRET: ${{ secrets.SUDO_SECRET }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- uses: actions/checkout@v4
- run: |
touch .dev.vars
echo SUDO_SECRET="$SUDO_SECRET" >> .dev.vars
echo XATA_API_KEY="$XATA_API_KEY" >> .dev.vars
echo XATA_DB="$XATA_DB" >> .dev.vars
touch .dev.vars
echo SUDO_SECRET="$SUDO_SECRET" >> .dev.vars
echo XATA_API_KEY="$XATA_API_KEY" >> .dev.vars
echo XATA_DB="$XATA_DB" >> .dev.vars
- run: npm install
- run: npm run test

- run: npm run coverage
- uses: codecov/codecov-action@v4
with:
file: ./coverage/lcov.info
Loading

0 comments on commit c5d0993

Please sign in to comment.