Skip to content

use the new format for globals #222

use the new format for globals

use the new format for globals #222

Workflow file for this run

name: Tests
on:
pull_request:
paths:
- "**/*.rs"
- 'Cargo.toml'
- 'tealr/Cargo.lock'
- 'tealr_derive/Cargo.toml'
- '.github/workflows/ci.yml'
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
components: rustfmt
- name: Formatting check
run: cargo fmt --all -- --check
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
tests :
- "cargo test --features mlua,mlua_vendored,mlua_lua53,mlua_async,mlua_send"
- "cargo test --features mlua,mlua_vendored,mlua_lua54,mlua_async,mlua_send"
- "cargo test --features mlua,mlua_vendored,mlua_lua53,mlua_async --no-run"
- "cargo test --features mlua,mlua_vendored,mlua_lua54,mlua_async --no-run"
- "cargo test --features rlua,rlua_builtin-lua54"
- "cargo test --features rlua,rlua_builtin-lua53"
steps:
- uses: actions/checkout@master
- uses: hecrj/[email protected]
with:
rust-version: stable
- uses: leafo/[email protected]
with:
luaVersion: "5.4"
- uses: leafo/[email protected]
- name: Install dependencies
run: luarocks install tl
- name: run tests
run: ${{matrix.tests}}
clippy:
runs-on: ubuntu-latest
strategy:
matrix:
tests :
- "cargo clippy --features mlua,mlua_vendored,mlua_lua54,mlua_async,mlua_send -- -D warnings"
- "cargo clippy --features mlua,mlua_vendored,mlua_lua53,mlua_async,mlua_send -- -D warnings"
- "cargo clippy --features mlua,mlua_vendored,mlua_luau,mlua_async,mlua_send -- -D warnings"
- "cargo clippy --features rlua,rlua_builtin-lua54 -- -D warnings"
- "cargo clippy --features rlua,rlua_builtin-lua53 -- -D warnings"
steps:
- uses: hecrj/[email protected]
with:
rust-version: stable
components: clippy
- uses: actions/checkout@master
- name: Clippy
run: ${{matrix.tests}}