Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
brofrain committed Oct 25, 2023
0 parents commit d288cda
Show file tree
Hide file tree
Showing 14 changed files with 2,519 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Setup

runs:
using: composite
steps:
- uses: actions/checkout@v3

- name: Cargo cache setup
uses: actions/cache@v3
with:
path: |
~/.cargo/
~/.rustup/toolchains/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Just setup
shell: bash
run: cargo install [email protected]

- name: Leptosfmt setup
shell: bash
run: cargo install [email protected]
33 changes: 33 additions & 0 deletions .github/workflows/review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Review

on:
push:
branches:
- main

pull_request:
branches: "*"

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

jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup

quality:
name: Source code quality
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Formatting
run: just fmt-check
- name: Lint
run: just lint
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
target

# Editor directories and files
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rust-analyzer.procMacro.ignored": {
"leptos_macro": ["component"]
},
"rust-analyzer.rustfmt.overrideCommand": ["just", "_vscode-fmt"]
}
Loading

0 comments on commit d288cda

Please sign in to comment.