Skip to content

test

test #330

Workflow file for this run

name: Cargo lint and test
on:
push
# branches: [ main ]
# pull_request:
# branches: [ main ]
env:
# Not needed in CI, should make things a bit faster
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
# Remove unnecessary WASM build artifacts
WASM_BUILD_CLEAN_TARGET: 1
# stripping symbols and optimizing for binary size
RUSTFLAGS: -C strip=symbols -C opt-level=s
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: true
jobs:
lint-and-test:
runs-on: ubuntu-latest
timeout-minutes: 50
steps:
- name: πŸ›€πŸΌ Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v3
with:
remove-android: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
- name: Checkout project
uses: actions/checkout@v4
- name: Build
run: |
echo "Free space:"
df -h
- name: βš™οΈ Install rust compilation dependencies
run: |
sudo apt-get update
sudo apt-get -y install libudev-dev
- name: πŸ‘¨β€πŸ”§ Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: πŸ‘©β€πŸ”§ Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: 🦿 Install Rust tookchain
uses: dtolnay/rust-toolchain@1.73.0
with:
components: rustfmt, clippy
- name: πŸ«™ Run sccache-cache
uses: mozilla-actions/sccache-action@

Check failure on line 62 in .github/workflows/typescript-lint.yml

View workflow run for this annotation

GitHub Actions / Cargo lint and test

Invalid workflow file

The workflow is not valid. .github/workflows/typescript-lint.yml (Line: 62, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'mozilla-actions/sccache-action@' Input string was not in a correct format. Failure to parse near offset 83. Expected an ASCII digit.
- run: pnpm install
- run: pnpm lint
- run: cargo test --release -- --nocapture