diff --git a/.github/workflows/nodejs.yaml b/.github/workflows/nodejs.yaml new file mode 100644 index 0000000..e55c881 --- /dev/null +++ b/.github/workflows/nodejs.yaml @@ -0,0 +1,35 @@ +name: Node.js CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies in main folder + run: npm install + + - name: Install dependencies in lambda folder + run: cd lambda && npm install + + - name: Run tests + run: npm test