Skip to content

Lint on push

Lint on push #6

Workflow file for this run

name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download CSPICE
run:
wget https://naif.jpl.nasa.gov/pub/naif/toolkit/C/PC_Linux_GCC_64bit/packages/cspice.tar.Z &&
gzip -d cspice.tar.Z &&
tar xf cspice.tar &&
mv cspice/lib/cspice.a cspice/lib/libcspice.a
- name: Set CSPICE_DIR
run:
echo "CSPICE_DIR=$(readlink -f cspice)" >> $GITHUB_ENV
- name: Lint
run: cargo clippy
- name: Build
run: cargo build --release --verbose
- name: Run unit tests
run: cargo test --release --verbose -- --nocapture
- name: Test Example
run: ./example.sh