Skip to content

Update wasmtime-wasi requirement from 16.0.0 to 19.0.2 #625

Update wasmtime-wasi requirement from 16.0.0 to 19.0.2

Update wasmtime-wasi requirement from 16.0.0 to 19.0.2 #625

Workflow file for this run

name: Linters
on: [ push, workflow_dispatch ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: Lint & Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
override: true
- name: Cache Cargo
uses: Swatinem/rust-cache@v1.3.0
- name: Lint
uses: actions-rs/cargo@v1
with:
command: fix
args: --all-features
- name: Format
uses: actions-rs/cargo@v1
with:
command: fmt
- name: Upload formatting and lint fixes
if: ${{ github.ref_name == "main" }}

Check failure on line 31 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / Linters

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 31, Col: 13): Unexpected symbol: '"main"'. Located at position 20 within expression: github.ref_name == "main"
run: |
if [ -n "$(git status --porcelain)" ]
then
git config user.name "Upload lint fixes from CI"
git config user.email ""
git add .
git commit -m "Automatically fix lint failures and format code."
git push
fi