Skip to content

[META] Add renovate to CI #1

[META] Add renovate to CI

[META] Add renovate to CI #1

Workflow file for this run

name: Continuous Integration (Rust)

Check failure on line 1 in .github/workflows/ci_rs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci_rs.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
push:
paths:
- .github/workflows/ci_rs.yml
- owmods_gui/backend/**
- owmods_cli/**
- owmods_core/**
- ./Cargo.toml
- ./Cargo.lock
paths-ignore:
- owmods_cli/*.md
- owmods_core/*.md
branches:
- main
- renovate/{cli,gui,core}
pull_request:
paths:
- .github/workflows/ci_rs.yml
- owmods_gui/backend/**
- owmods_cli/**
- owmods_core/**
- ./Cargo.toml
- ./Cargo.lock
paths-ignore:
- owmods_cli/*.md
- owmods_core/*.md
branches:
- main
- dev
jobs:
rs:
name: Check Rust
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
- name: Check Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
- name: Make Stub Dist Dir
run: mkdir owmods_gui/dist
- name: Check Clippy
uses: actions-rs/cargo@v1
with:
command: lint
- name: Run Tests (Core)
uses: actions-rs/cargo@v1
with:
command: test
args: -p owmods_core