Skip to content

Commit

Permalink
Merge pull request #1 from gaetbout/chore/rust
Browse files Browse the repository at this point in the history
Chore/rust
  • Loading branch information
gaetbout authored Nov 14, 2023
2 parents 6072d8e + c6cd9dd commit 1bb3535
Show file tree
Hide file tree
Showing 39 changed files with 4,461 additions and 5,704 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.x86_64-unknown-linux-gnu]
linker = "x86_64-unknown-linux-gnu-gcc"
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
BEARER_TOKEN=
NODE_PROVIDER_API_KEY=
COINCAP_API_KEY=
TWITTER_OAUTH2_CLIENT_ID=
TWITTER_OAUTH2_CLIENT_SECRET=
TWITTER_OAUTH2_CLIENT_SECRET=
11 changes: 0 additions & 11 deletions .eslintrc.json

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/ci.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: RUST CI

on: [push, pull_request]

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3

- name: Step 2 - Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Step 3 - Run cargo check
run: mv .env.example .env && rm -rf .cargo && cargo check

fmt:
runs-on: ubuntu-latest
needs: check
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3

- name: Step 2 - Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Step 3 - Run cargo fmt
run: cargo fmt --check

clippy:
runs-on: ubuntu-latest
needs: check
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3

- name: Step 2 - Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Step 3 - Run cargo clippy
run: mv .env.example .env && rm -rf .cargo && cargo clippy
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
node_modules
dist

.env
.vscode
log
log

db/

# Added by cargo

/target
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

Loading

0 comments on commit 1bb3535

Please sign in to comment.