-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
4 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 |
---|---|---|
|
@@ -22,23 +22,46 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
# We need to fetch all branches and commits so that Nx affected has a base to compare against. | ||
fetch-depth: 0 | ||
- uses: pnpm/[email protected] | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Install Zig toolchain | ||
uses: goto-bus-stop/setup-zig@v2 | ||
|
||
- name: Install Cargo Lambda | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: cargo-lambda/cargo-lambda | ||
platform: linux # Other valid options: 'windows' or 'darwin' | ||
arch: x86_64 # Other valid options for linux: 'aarch64' | ||
|
||
- name: Build Rust Lambdas | ||
run: cargo lambda build --arm64 --release --output-format zip | ||
working-directory: rust_lambdas | ||
|
||
- name: '🧪 Test linter' | ||
run: pnpm run test-linter | ||
|
||
- name: '🏗 Test types' | ||
run: pnpm test-type | ||
|
||
- name: '🏗 Test unit' | ||
run: pnpm test-unit |