Skip to content

fix(ci): remove old github files #2

fix(ci): remove old github files

fix(ci): remove old github files #2

Workflow file for this run

name: CI

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

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

`pull_requests` is not a valid event name
on:
pull_requests:
push:
branches: [ main ]
jobs:
check:
name: Cargo check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
rust: [ stable, nightly ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchainr: ${{ matrix.rust }}
override: true
- name: Cargo check
uses: actions-rs/cargo@v1
with:
command: check
format:
name: Cargo format
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
rust: [ stable ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchainr: ${{ matrix.rust }}
override: true
- run: rustup component add rustfmt
- name: Cargo format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
rust: [ stable ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchainr: ${{ matrix.rust }}
override: true
- name: Clippy lint
uses: giraffate/clipp-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: 'github-pr-review'
clippy_flags: --all-features