Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Merge pull request #33 from wasmerio/dont-serialize-private-equals-false #93

Merge pull request #33 from wasmerio/dont-serialize-private-equals-false

Merge pull request #33 from wasmerio/dont-serialize-private-equals-false #93

Workflow file for this run

name: Continuous Integration
on:
pull_request:
push:
branches:
- main
env:
DEFAULT_CRATE_NAME: wasmer_toml
jobs:
check:
name: Compile and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Setup Rust
uses: dsherret/rust-toolchain-file@v1
- name: Install Nextest
uses: taiki-e/install-action@nextest
- name: Type Checking
run: cargo check --workspace --verbose --locked
- name: Build
run: cargo build --workspace --verbose --locked
- name: Test
run: cargo nextest run --workspace --verbose --locked
lints:
name: Linting and Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Setup Rust
uses: dsherret/rust-toolchain-file@v1
- name: Check Formatting
run: cargo fmt --all --verbose --check
- name: Clippy
run: cargo clippy --workspace --verbose
api-docs:
name: Publish API Docs to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Setup Rust
uses: dsherret/rust-toolchain-file@v1
- name: Generate API docs
run: cargo doc --workspace --verbose --locked
- name: Redirect top-level GitHub Pages
run: 'echo ''<meta http-equiv="refresh" content="0; url=${{ env.DEFAULT_CRATE_NAME }}/index.html" />'' > target/doc/index.html'
shell: bash
- name: Upload API Docs
uses: JamesIves/github-pages-deploy-action@v4.4.0
if: github.ref == 'refs/heads/main'
with:
branch: gh-pages
folder: target/doc
single-commit: true
workflow-times:
name: Workflow Timings
runs-on: ubuntu-latest
needs:
- check
steps:
- name: Time Reporter
uses: Michael-F-Bryan/workflow-timer@v0.2.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
jobs: |
Compile and Test