Skip to content

Merge pull request #2 from vralle/dependabot/github_actions/actions/s… #13

Merge pull request #2 from vralle/dependabot/github_actions/actions/s…

Merge pull request #2 from vralle/dependabot/github_actions/actions/s… #13

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: CI
on:
push:
branches: [ "main" ]
pull_request: ~
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20.x, 22.x]
name: Tests (Node ${{ matrix.node-version }})
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Tests
run: npm run test