fix CI error and cache clippy and fmt jobs
This commit is contained in:
parent
46e7656967
commit
e78e18a411
5 changed files with 35 additions and 3414 deletions
26
.github/workflows/clippy-fmt.yml
vendored
26
.github/workflows/clippy-fmt.yml
vendored
|
@ -12,6 +12,18 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: ⚡ Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
node_modules
|
||||
./docs/openapi/node_modules
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
|
@ -28,6 +40,18 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: ⚡ Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
node_modules
|
||||
./docs/openapi/node_modules
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
|
@ -38,7 +62,7 @@ jobs:
|
|||
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14.x'
|
||||
node-version: "14.x"
|
||||
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
|
|
1
.github/workflows/coverage.yml
vendored
1
.github/workflows/coverage.yml
vendored
|
@ -55,6 +55,7 @@ jobs:
|
|||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
node_modules
|
||||
./docs/openapi/node_modules
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
|
|
1
.github/workflows/linux.yml
vendored
1
.github/workflows/linux.yml
vendored
|
@ -48,6 +48,7 @@ jobs:
|
|||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
node_modules
|
||||
./docs/openapi/node_modules
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
|
|
15
Makefile
15
Makefile
|
@ -13,11 +13,6 @@ coverage: migrate ## Generate code coverage report in HTML format
|
|||
cd browser && cargo tarpaulin -t 1200 --out Html
|
||||
cargo tarpaulin -t 1200 --out Html
|
||||
|
||||
dev-env: ## Setup development environtment
|
||||
cargo fetch
|
||||
yarn install
|
||||
cd docs/openapi && yarn install
|
||||
|
||||
doc: ## Generate documentation
|
||||
#yarn doc
|
||||
cargo doc --no-deps --workspace --all-features
|
||||
|
@ -30,9 +25,15 @@ docker-publish: docker ## Build and publish Docker image
|
|||
docker push mcaptcha/mcaptcha:master
|
||||
docker push mcaptcha/mcaptcha:latest
|
||||
|
||||
frontend: ## Build frontend
|
||||
env: ## Setup development environtment
|
||||
cargo fetch
|
||||
cd browser && wasm-pack build --release
|
||||
yarn install
|
||||
cd docs/openapi && yarn install
|
||||
|
||||
frontend: env ## Build frontend
|
||||
cd docs/openapi/ && yarn build
|
||||
cd browser && wasm-pack build --release
|
||||
cd docs/openapi/ yarn build
|
||||
yarn install
|
||||
yarn build
|
||||
|
||||
|
|
3406
docs/openapi/package-lock.json
generated
3406
docs/openapi/package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue