Merge pull request #312 from brave/renovate/eslint-8.x #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
name: Tests (nostd) | |
jobs: | |
test-nofeatures: | |
name: ${{matrix.rust}} on ${{matrix.os}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
rust: [1.70.0, stable] | |
os: [ubuntu-20.04] | |
env: | |
RUSTFLAGS: '' | |
CARGO_PROFILE_DEV_DEBUG: '0' # reduce size of target directory | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Toolchain | |
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1 | |
with: | |
toolchain: ${{matrix.rust}} | |
- name: Cache | |
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 | |
- name: Check | |
run: cargo check --no-default-features --all-targets | |
- name: Test | |
run: cargo test --release --no-default-features |