(java): Add an Action to test the Java lambda #31
This file contains hidden or 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: Test TypeScript Lambda | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
cache-dependency-path: lambda/typescript/package-lock.json | |
- name: Install dependencies | |
run: | | |
cd lambda/typescript | |
npm ci | |
- name: Run tests | |
run: | | |
cd lambda/typescript | |
npm run test |