Skip to content

Shortens as_raw_symbol_token_ref to as_raw_symbol_ref #2871

Shortens as_raw_symbol_token_ref to as_raw_symbol_ref

Shortens as_raw_symbol_token_ref to as_raw_symbol_ref #2871

Workflow file for this run

name: Code Coverage
on: [push, pull_request]
jobs:
build:
name: Build and Test
runs-on: ${{ matrix.os }}
# We want to run on external PRs, but not on internal ones as push automatically builds
# H/T: https://github.com/Dart-Code/Dart-Code/commit/612732d5879730608baa9622bf7f5e5b7b51ae65
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'amazon-ion/ion-rust'
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Git Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
# We need this component to generate source coverage in stable
components: llvm-tools-preview
override: true
# Wrapper for running coverage with -C instrument-coverage
- name: Cargo Install Coverage Wrapper
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-llvm-cov
- name: Cargo Test w/ Coverage
uses: actions-rs/cargo@v1
with:
command: llvm-cov
args: --verbose --workspace --all-features --no-fail-fast --codecov --output-path codecov.json
- name: Codecov Upload
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: codecov.json
fail_ci_if_error: true