Skip to content

[pull] master from TheAlgorithms:master #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: build
schedule:
- cron: '51 2 * * 4'

permissions:
contents: read

jobs:
fmt:
name: cargo fmt
Expand All @@ -14,15 +17,15 @@ jobs:
- uses: actions/checkout@v4
- name: cargo fmt
run: cargo fmt --all -- --check

clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cargo clippy
run: cargo clippy --all --all-targets -- -D warnings

test:
name: cargo test
runs-on: ubuntu-latest
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/code_ql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: code_ql

'on':
workflow_dispatch:
push:
branches:
- master
pull_request:
schedule:
- cron: '10 7 * * 1'

jobs:
analyze_actions:
name: Analyze Actions
runs-on: 'ubuntu-latest'
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'actions'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:actions"
...
3 changes: 3 additions & 0 deletions .github/workflows/directory_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches: [master]

permissions:
contents: read

jobs:
MainSequence:
name: DIRECTORY.md
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read

jobs:
stale:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/upload_coverage_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- master
pull_request:

permissions:
contents: read

env:
REPORT_NAME: "lcov.info"

Expand Down