-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build CLI: Basic integrations in CI system
- 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
1 parent
b94bddc
commit 27c5707
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|