Merge pull request #3 from stockstory/hurtak/update-node-pnpm #11
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
name: Test logtail-lambda-extension | |
on: [push, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
name: Test | |
steps: | |
- name: Checkout from repository | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Cache node_modules | |
uses: actions/cache@v4 | |
id: cache-nodemodules | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-nodemodules-${{ hashFiles('**/pnpm-lock.yaml') }} | |
- name: Install requirements | |
if: steps.cache-nodemodules.outputs.cache-hit != 'true' | |
run: pnpm install | |
- name: Validate | |
run: pnpm run validate |