Skip to content

Commit

Permalink
ci(pr): setup cargo lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
fargito committed Apr 4, 2024
1 parent f4df4ec commit 1b020a4
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,41 @@ jobs:
- 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 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: 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

0 comments on commit 1b020a4

Please sign in to comment.