fix CI error and cache clippy and fmt jobs

This commit is contained in:
realaravinth 2021-10-08 18:54:10 +05:30
parent 46e7656967
commit e78e18a411
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
5 changed files with 35 additions and 3414 deletions

View file

@ -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

View file

@ -55,6 +55,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
node_modules
./docs/openapi/node_modules
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

View file

@ -48,6 +48,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
node_modules
./docs/openapi/node_modules
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

View file

@ -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

File diff suppressed because it is too large Load diff