Skip to content

Allow test.sh to run on darwin #1734

Allow test.sh to run on darwin

Allow test.sh to run on darwin #1734

Workflow file for this run

name: Code coverage
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
- 'demo/**'
- 'docs/**'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
- 'demo/**'
- 'docs/**'
workflow_dispatch:
jobs:
coverage:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
AWS_SKIP_CREDENTIALS: 1
AWS_REGION: eu-central-1
steps:
- name: Set up system dependencies
run: sudo apt-get update && sudo apt-get install -y gdal-bin sqlite3-tools postgresql-client
- name: Checkout sources
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
- uses: taiki-e/install-action@cc60de1d6831d7e9c4342f618ce7a5d6a9f223a4 # v2.61.6
with: { tool: 'just,cargo-llvm-cov' }
- name: Generate code coverage
run: just coverage --codecov --output-path target/codecov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/codecov.info
fail_ci_if_error: true