mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
35 lines
717 B
YAML
35 lines
717 B
YAML
name: Cargo Deny
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
paths:
|
|
- "Cargo.lock"
|
|
- "deny.toml"
|
|
- ".github/workflows/deny.yml"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "Cargo.lock"
|
|
- "deny.toml"
|
|
- ".github/workflows/deny.yml"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: ${{ github.ref_name != 'main' }}
|
|
|
|
jobs:
|
|
deny:
|
|
name: Cargo Deny
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: taiki-e/checkout-action@v1
|
|
|
|
- uses: Boshen/setup-rust@main
|
|
with:
|
|
restore-cache: false
|
|
tools: cargo-deny
|
|
|
|
- run: cargo deny check
|