Skip to content

update CI for swift, ocaml, and C# #233

update CI for swift, ocaml, and C#

update CI for swift, ocaml, and C# #233

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTFLAGS: "-D warnings"
RUSTUP_MAX_RETRIES: 10
# https://stackoverflow.com/questions/59119904/process-terminated-couldnt-find-a-valid-icu-package-installed-on-the-system-in
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# will install toolchain specified in rust-toolchain
- name: Install Rust toolchain
run: |
rustup show
- name: Version Information
run: |
rustc --version
cargo --version
rustup --version
cargo fmt -- --version
cargo clippy -- --version
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: Lint (rustfmt)
run: |
cargo fmt -- --check
- name: Lint (clippy)
run: |
cargo clippy --locked --workspace --all-features --all-targets
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# will install toolchain specified in rust-toolchain
- name: Install Rust toolchain
run: |
rustup show
- name: Setup Additional Languages (.Net)
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Test (dev)
run: |
cargo test -p serde-generate csharp