Update lint_master.yml #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: LintMaster | |
on: | |
push: | |
branches: | |
- master # Push events on master branch | |
- issue_2083 | |
jobs: | |
ts_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: libudev-dev | |
run: sudo apt-get install -y libudev-dev | |
- name: install node | |
uses: actions/setup-node@master | |
with: | |
node-version: "current" | |
- name: Set up Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Cache Rust dependencies and CLI tool | |
uses: Swatinem/rust-cache@v2.7.3 | |
with: | |
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 | |
working-directory: application/client | |
run: yarn run check | |
- name: TypeScript Check - Holder Application | |
working-directory: application/holder | |
run: yarn run check | |
- name: TypeScript Check - Platform Application | |
working-directory: application/platform | |
run: yarn run check | |
# rust_lint: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: libudev-dev | |
# run: sudo apt-get install -y libudev-dev | |
# - name: install ruby | |
# uses: ruby/setup-ruby@v1 | |
# with: | |
# ruby-version: "3.0" | |
# bundler-cache: true | |
# - name: install ruby:gem::dotenv | |
# run: gem install dotenv | |
# - name: install ruby:gem::json | |
# run: gem install json | |
# - uses: actions-rs/toolchain@v1 | |
# with: | |
# toolchain: stable | |
# override: true | |
# - name: Rust linting | |
# run: rake lint:rust | |
# integration_tests: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: libudev-dev | |
# run: sudo apt-get install -y libudev-dev | |
# - name: install ruby | |
# uses: ruby/setup-ruby@v1 | |
# with: | |
# ruby-version: "3.0" | |
# bundler-cache: true | |
# - name: install ruby:gem::dotenv | |
# run: gem install dotenv | |
# - name: install ruby:gem::json | |
# run: gem install json | |
# - uses: actions-rs/toolchain@v1 | |
# with: | |
# toolchain: stable | |
# override: true | |
# - name: enable corepack for yarnpkg upgrade | |
# run: | | |
# npm install tslib | |
# corepack enable | |
# - name: Run integration tests | |
# run: rake test:js | |
# unit_tests: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: libudev-dev | |
# run: sudo apt-get install -y libudev-dev | |
# - name: install ruby | |
# uses: ruby/setup-ruby@v1 | |
# with: | |
# ruby-version: "3.0" | |
# bundler-cache: true | |
# - name: Run unit tests on indexer | |
# run: rake test:rust | |
# name: LintMaster | |
# on: | |
# push: | |
# branches: | |
# - master # Trigger on push events to the master branch | |
# - issue_2083 # Trigger on push events to the issue_2083 branch | |
# jobs: | |
# ts_lint: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout Repository | |
# uses: actions/checkout@v2 | |
# - name: Install libudev-dev | |
# run: sudo apt-get install -y libudev-dev | |
# - name: Install Node.js | |
# uses: actions/setup-node@master | |
# with: | |
# node-version: "current" | |
# - name: Set up Rust toolchain | |
# uses: actions-rs/toolchain@v1 | |
# with: | |
# toolchain: stable | |
# override: true | |
# # Cache Rust dependencies and build artifacts | |
# - name: Cache Rust dependencies | |
# uses: Swatinem/rust-cache@v2.7.3 | |
# with: | |
# 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 | |
# - name: Enable Corepack for Yarn | |
# 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: Run JS/TS Linting | |
# run: cargo chipmunk lint shared wrapper client app -u print | |
# - name: TypeScript Check - Client Application | |
# working-directory: application/client | |
# run: yarn run check | |
# - name: TypeScript Check - Holder Application | |
# working-directory: application/holder | |
# run: yarn run check | |
# - name: TypeScript Check - Platform Application | |
# working-directory: application/platform | |
# run: yarn run check |