Skip to content

Commit

Permalink
chore(ci.yml): Add Prisma generate step in codecoverage job
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiss committed Sep 26, 2023
1 parent 246b4dd commit b65f3fc
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"

check:
needs: setup
name: Check
Expand All @@ -34,7 +34,7 @@ jobs:
profile: minimal
toolchain: stable
override: true

- name: Prisma generate
uses: actions-rs/cargo@v1
with:
Expand All @@ -49,18 +49,23 @@ jobs:
codecoverage:
if: github.event_name == 'pull_request'
needs: check
name: Test
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2
- name: Prisma generate
uses: actions-rs/cargo@v1
with:
command: prisma
args: generate
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: '0.15.0'
args: '-- --test-threads 1'
version: "0.15.0"
args: "-- --test-threads 1"
- name: Upload to codecov.io
uses: codecov/[email protected]
with:
Expand Down

0 comments on commit b65f3fc

Please sign in to comment.