Skip to content
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

chore: switch to rsa #2

Merged
merged 6 commits into from
Jun 29, 2024
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
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**Summary:**
_Briefly describe the changes made in this PR._

**Issue Reference(s):**
Fixes #... _(Replace "..." with the issue number)_

**Build & Testing:**

- [ ] I ran `cargo test --all-features --workspace` successfully.

**Checklist:**

- [ ] PR follows the naming convention of `<type>(<optional scope>): <title>`
92 changes: 92 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Build

on:
push:
branches:
- main
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
test_cf:
name: Run Tests (WASM)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: wasm32-unknown-unknown

- name: Test WASM
run: |
cargo install wasm-pack
wasm-pack test --node

test:
name: Run Tests on ${{ matrix.build }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build:
[linux-x64-gnu, linux-x64-musl, linux-arm64-gnu, linux-arm64-musl, linux-ia32-gnu, darwin-arm64, darwin-x64]
include:
- build: linux-x64-gnu
os: ubuntu-latest
target: x86_64-unknown-linux-gnu

- build: linux-x64-musl
os: ubuntu-latest
target: x86_64-unknown-linux-musl

- build: linux-arm64-gnu
os: ubuntu-latest
target: aarch64-unknown-linux-gnu

- build: linux-arm64-musl
os: ubuntu-latest
target: aarch64-unknown-linux-musl

- build: linux-ia32-gnu
os: ubuntu-latest
target: i686-unknown-linux-gnu

- build: darwin-arm64
os: macos-latest
target: aarch64-apple-darwin

- build: darwin-x64
os: macos-latest
target: x86_64-apple-darwin
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-llvm-cov

- name: Install Stable Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}

- name: Run Cargo Test
run: cargo llvm-cov --all-features --workspace --exclude lms-wasm --exclude lms-autogen --lcov --output-path lcov.info

- name: Upload Coverage to Codecov
if: matrix.build == 'linux-x64-gnu'
uses: Wandalen/wretry.action@v2
with:
action: codecov/codecov-action@v4
attempt_limit: 3
attempt_delay: 10000
with: |
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
6 changes: 3 additions & 3 deletions .github/workflows/devskim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ name: DevSkim

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
schedule:
- cron: '27 4 * * 5'
- cron: "27 4 * * 5"

jobs:
lint:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: linter.ci

on:
push:
branches:
- main
pull_request:
branches: [main]
types: [opened, reopened, synchronize, labeled]
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Run Formatter and Lint Check
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20.11.0"
- name: Install Prettier
run: npm install --global prettier
- name: Install Stable Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run Lint Script
run: ./lint.sh --mode=check
17 changes: 17 additions & 0 deletions .github/workflows/pr-title-convention.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR Title Validation

on:
pull_request_target:
types: [opened, reopened, synchronize, edited]

permissions:
pull-requests: read

jobs:
title-check:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/target
/Cargo.lock
1 change: 1 addition & 0 deletions .idea/encrypto_rust.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target/
generated/
*.schema.json
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": false,
"printWidth": 120,
"tabWidth": 2,
"bracketSpacing": false
}
24 changes: 0 additions & 24 deletions CHANGELOG.md

This file was deleted.

Loading