Skip to content

Commit

Permalink
Build CLI: Basic integrations in CI system
Browse files Browse the repository at this point in the history
- Use the CLI tool with GitHub Actions for Pull Requests along side with
  the current ruby actions for comparison
- Install latest rust manually instead of the deprecated GitHub Action
- Use Cargo cache action for speed up installing the build CLI tool
- Dependencies are installed manually for now but this can improved
  • Loading branch information
AmmarAbouZor committed Jul 30, 2024
1 parent b94bddc commit 27c5707
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/pullrequest_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,56 @@ name: Checks
on: [pull_request]

jobs:
all_lint:
name: Run all lints using CLI tool
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Latest Rust
run: |
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
rustup default ${{ env.RUST_CHANNEL }}
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Install nj-cli
run: cargo install nj-cli
- name: Install Build CLI tool
run: cargo install --path=cli
- name: libudev-dev
run: sudo apt-get install -y libudev-dev
- name: enable corepack for yarnpkg upgrade
run: corepack enable
- name: Run Lints
run: cargo chipmunk lint -r
all_test:
name: Run all tests using CLI tool
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Latest Rust
run: |
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
rustup default ${{ env.RUST_CHANNEL }}
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Install nj-cli
run: cargo install nj-cli
- name: Install Build CLI tool
run: cargo install --path=cli
- name: libudev-dev
run: sudo apt-get install -y libudev-dev
- name: enable corepack for yarnpkg upgrade
run: |
npm install tslib
corepack enable
- name: Run Tests
run: cargo chipmunk test -r
ts_lint:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 27c5707

Please sign in to comment.