Skip to content

Merge pull request #14 from openlayers/dependabot/npm_and_yarn/mocha-… #38

Merge pull request #14 from openlayers/dependabot/npm_and_yarn/mocha-…

Merge pull request #14 from openlayers/dependabot/npm_and_yarn/mocha-… #38

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CI: true
jobs:
run:
name: Node ${{ matrix.node }} / ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform:
- ubuntu-latest
- macos-latest
- windows-latest
node:
- 20
- 22
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Clone repository
uses: actions/checkout@v4
- name: Set Node.js version
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: node --version
- run: npm --version
- name: Install npm dependencies
run: npm ci
- name: Run tests
run: npm test