Skip to content

Commit

Permalink
add secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-torabiv committed Aug 6, 2024
1 parent 5dcfce5 commit 93edfb6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,25 @@ jobs:
node: ['18', '17']
name: test/node ${{ matrix.node }}/${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
env:
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm install
# - run: npm run lint
- run: npm run test
- run: npm run build

coverage:
needs: [test]
name: coverage
runs-on: ubuntu-latest
env:
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -33,8 +37,7 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run coverage
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run coverage
coverageCommand: npm run coverage

0 comments on commit 93edfb6

Please sign in to comment.