on: [push, pull_request]
permissions:
contents: read
name: Basic tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run full test suite
strategy:
matrix:
toolchain:
- stable
- nightly
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with:
persist-credentials: false
- name: Install toolchain
env:
TARGET_TOOLCHAIN: ${{ matrix.toolchain }}
run: rustup toolchain install "${TARGET_TOOLCHAIN}"
shell: bash
- name: Test debug-mode
env:
API_KEY: "00000000000000000000000000000000"
run: cargo test --all-features
- name: Test release-mode
run: cargo test --release --all-features