Skip to content

Commit

Permalink
Remove Rust stuff from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-apollo committed May 24, 2024
1 parent 9bd9ee3 commit 2a8ab7a
Showing 1 changed file with 4 additions and 57 deletions.
61 changes: 4 additions & 57 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: 2.1

orbs:
node: circleci/node@5.1.0
rust: circleci/rust@1.6.0
secops: apollo/circleci-secops-orb@2.0.7

jobs:
Expand All @@ -24,7 +23,6 @@ jobs:
# should be able to remove this step when we drop node v14
- run: npm install -g npm@9
- node/install-packages
- setup_rust
- run:
name: Run tests
command: npm run test:ci
Expand All @@ -33,49 +31,6 @@ jobs:
command: npm run coverage:upload
- store_test_results:
path: junit.xml
Check Hints Code Doc:
docker:
- image: cimg/base:stable
steps:
- checkout
- node/install:
node-version: "20"
- setup_rust
- run:
name: Install deps and build
command: npm ci && npm run compile
- run:
name: Check Hints Code Doc
command: npm run hints-doc:check
Lint Rust:
description: "Lint Rust code"
docker:
- image: cimg/base:stable
steps:
- checkout
- setup_rust
- run:
name: Clippy
command: |
cd internals-js/wasm
cargo clippy
- save_cache:
key: rust-{{ checksum "internals-js/wasm/Cargo.toml" }}-{{ checksum "internals-js/wasm/Cargo.lock" }}
paths:
- ~/.cargo/
Check Rust Format:
description: "Check Rust code formatting"
docker:
- image: cimg/base:stable
steps:
- checkout
- rust/install:
version: nightly
- run:
name: Rustfmt
command: |
cd internals-js/wasm
cargo +nightly fmt -- --check

workflows:
Build:
Expand All @@ -95,14 +50,16 @@ workflows:
- node/run:
name: Check GraphQL Types
npm-run: codegen:check
- Check Hints Code Doc
- node/run:
name: Check Hints Code Doc
override-ci-command: npm ci && npm run compile
npm-run: hints-doc:check
- node/run:
name: Check Spelling
npm-run: spell:check
- node/run:
name: Check Prettier (tests)
npm-run: prettier:check
- Lint Rust
security-scans:
jobs:
- secops/gitleaks:
Expand All @@ -117,13 +74,3 @@ workflows:
- secops-oidc
- github-orb
git-base-revision: <<#pipeline.git.base_revision>><<pipeline.git.base_revision>><</pipeline.git.base_revision >>
commands:
setup_rust:
steps:
- rust/install:
version: stable
- restore_cache:
keys:
- rust-{{ checksum "internals-js/wasm/Cargo.toml" }}-{{ checksum "internals-js/wasm/Cargo.lock" }}
- rust-{{ checksum "internals-js/wasm/Cargo.toml" }}
- rust

0 comments on commit 2a8ab7a

Please sign in to comment.