Skip to content

Commit

Permalink
Update lint_master.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmesamster committed Sep 4, 2024
1 parent 7d5c999 commit 39cc28c
Showing 1 changed file with 37 additions and 15 deletions.
52 changes: 37 additions & 15 deletions .github/workflows/lint_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,49 @@ jobs:
with:
toolchain: stable
override: true

- name: Cache Rust dependencies and CLI tool
uses: Swatinem/rust-cache@v2.7.3
with:
key: ${{ runner.os }}-chipmunk-cli-${{ hashFiles('**/Cargo.lock', 'cli/**') }}
target_directory: |
/usr/local/cargo
~/.cargo/bin # Add cargo bin directory to cache
- name: cargo install nj-cli
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
cache-targets: true # Caches both ~/.cargo and the target directory
- name: Cache Cargo Binaries
uses: actions/cache@v3
with:
path: ~/.cargo/bin # Cache binaries installed by cargo
key: ${{ runner.os }}-cargo-bin-${{ hashFiles('cli/**', '**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-bin-
- name: Install nj-cli
run: cargo install nj-cli

- name: enable corepack for yarnpkg upgrade
run: corepack enable

- name: Install Build CLI tool
run: cargo install --path=cli

- name: install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: JS/TS linting
run: cargo chipmunk lint shared wrapper client app -u print
- name: TypeScript check - Client Application

- name: TypeScript Check - Client Application
working-directory: application/client
run: yarn run check
- name: TypeScript check - Holder Application

- name: TypeScript Check - Holder Application
working-directory: application/holder
run: yarn run check
- name: TypeScript check - Platform Application

- name: TypeScript Check - Platform Application
working-directory: application/platform
run: yarn run check



# rust_lint:
# runs-on: ubuntu-latest
# steps:
Expand Down Expand Up @@ -114,7 +129,7 @@ jobs:
# - name: Run unit tests on indexer
# run: rake test:rust

# name: LintMaster
# name: LintMaster

# on:
# push:
Expand Down Expand Up @@ -143,13 +158,21 @@ jobs:
# toolchain: stable
# override: true

# - name: Cache Rust dependencies and CLI tool
# # Cache Rust dependencies and build artifacts
# - name: Cache Rust dependencies
# uses: Swatinem/rust-cache@v2.7.3
# with:
# key: ${{ runner.os }}-cargo-install-cli-${{ hashFiles('**/Cargo.lock', 'cli/**') }}
# target_directory: |
# /usr/local/cargo
# ~/.cargo/bin # Add cargo bin directory to cache
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# cache-targets: true # Caches both ~/.cargo and the target directory

# # Cache binaries installed by cargo
# - name: Cache Cargo Binaries
# uses: actions/cache@v3
# with:
# path: ~/.cargo/bin
# key: ${{ runner.os }}-cargo-bin-${{ hashFiles('cli/**', '**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-cargo-bin-

# - name: Install nj-cli
# run: cargo install nj-cli
Expand Down Expand Up @@ -177,4 +200,3 @@ jobs:
# - name: TypeScript Check - Platform Application
# working-directory: application/platform
# run: yarn run check

0 comments on commit 39cc28c

Please sign in to comment.