Skip to content

Commit 9f69564

Browse files
committed
feat: add lib crd, devfile,helper,workspace
1 parent 68f5c49 commit 9f69564

41 files changed

Lines changed: 21327 additions & 116 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "cargo" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: BuildAndAlphaRelease
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- "[0-9]+.[0-9]+.[0-9]+"
10+
11+
jobs:
12+
create-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: taiki-e/create-gh-release-action@v1
17+
with:
18+
changelog: CHANGELOG.md
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
draft: true
21+
upload-assets:
22+
needs: create-release
23+
strategy:
24+
matrix:
25+
os:
26+
- ubuntu-latest
27+
- macos-latest
28+
- windows-latest
29+
runs-on: ${{ matrix.os }}
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: taiki-e/upload-rust-binary-action@v1
33+
with:
34+
bin: dev-cli
35+
tar: unix
36+
zip: windows
37+
archive: $bin-$tag-$target
38+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/rust-audit.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Security audit
2+
on:
3+
push:
4+
paths:
5+
- "**/Cargo.toml"
6+
- "**/Cargo.lock"
7+
schedule:
8+
- cron: "50 23 * * *"
9+
jobs:
10+
audit:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
checks: write
15+
contents: read
16+
security-events: write
17+
actions: read
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: rustsec/audit-check@v1.4.1
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rust-clippy.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# rust-clippy is a tool that runs a bunch of lints to catch common
6+
# mistakes in your Rust code and help improve your Rust code.
7+
# More details at https://github.com/rust-lang/rust-clippy
8+
# and https://rust-lang.github.io/rust-clippy/
9+
10+
name: rust-clippy analyze
11+
12+
on:
13+
push:
14+
branches: ["main", "*"]
15+
paths:
16+
- "/**/*.rs"
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: ["main"]
20+
schedule:
21+
- cron: "50 23 * * *"
22+
23+
jobs:
24+
rust-clippy-analyze:
25+
name: Run rust-clippy analyzing
26+
runs-on: ubuntu-latest
27+
permissions:
28+
contents: read
29+
security-events: write
30+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v4
34+
35+
- name: Install Rust toolchain
36+
uses: dtolnay/rust-toolchain@stable
37+
with:
38+
toolchain: stable
39+
components: clippy, rustfmt
40+
41+
- name: Install required cargo
42+
run: cargo install clippy-sarif sarif-fmt cargo-audit
43+
44+
- name: Run rust-clippy
45+
run: cargo clippy
46+
--all-features
47+
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
48+
continue-on-error: true
49+
50+
- name: Upload analysis results to GitHub
51+
uses: github/codeql-action/upload-sarif@v3
52+
with:
53+
sarif_file: rust-clippy-results.sarif
54+
wait-for-processing: true
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: rust-coverage
2+
3+
on:
4+
push:
5+
branches: ["main", "*"]
6+
paths:
7+
- "**/back/**/*.rs"
8+
- "folio_content/**/*"
9+
pull_request:
10+
# The branches below must be a subset of the branches above
11+
branches: ["main"]
12+
schedule:
13+
- cron: "50 23 * * *"
14+
15+
jobs:
16+
rust-coverage:
17+
name: Rust coverage
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
security-events: write
22+
actions: read
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: Install Rust toolchain
28+
uses: dtolnay/rust-toolchain@stable
29+
with:
30+
toolchain: stable
31+
components: llvm-tools-preview
32+
33+
- uses: taiki-e/install-action@cargo-llvm-cov
34+
35+
- name: Collect coverage data (including doctests)
36+
run: |
37+
cargo llvm-cov --lcov --output-path lcov.info --ignore-filename-regex 'init' --workspace
38+
39+
- name: Upload coverage reports to Codecov
40+
uses: codecov/codecov-action@v4.0.1
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
files: lcov.info

.vscode/extensions.json

100644100755
Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
24
"recommendations": [
3-
4-
"nrwl.angular-console",
5-
"esbenp.prettier-vscode"
5+
"rust-lang.rust-analyzer",
6+
"github.copilot",
7+
"mitchdenny.ecdc",
8+
"aaron-bond.better-comments",
9+
"bierner.markdown-mermaid",
10+
"hristian-kohler.path-intellisense",
11+
"helixquar.randomeverything",
12+
"shardulm94.trailing-spaces",
13+
"tamasfe.even-better-toml",
14+
"edwinkofler.vscode-hyperupcall-pack-markdown",
15+
"proxzima.sweetdracula",
16+
"wdhongtw.gpg-indicator",
17+
"vadimcn.vscode-lldb",
18+
"wakatime.vscode-wakatime"
619
]
7-
}
20+
}

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug",
11+
"program": "${workspaceFolder}/target/debug/sandbox",
12+
"args": [],
13+
"cwd": "${workspaceFolder}"
14+
}
15+
]
16+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.fontFamily": "'FiraCode Nerd Font','Droid Sans Mono', 'monospace', monospace",
4+
"editor.fontLigatures": true,
5+
"workbench.colorTheme": "Dark",
6+
"rust-analyzer.linkedProjects": ["./Cargo.toml"]
7+
}

0 commit comments

Comments
 (0)