Skip to content

do not duplicate github actions runs, run on push to master or full p… #167

do not duplicate github actions runs, run on push to master or full p…

do not duplicate github actions runs, run on push to master or full p… #167

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
types:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies
run: npm ci --ignore-scripts
- name: types
run: npm run types
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies
run: npm ci
- name: check codestyle
run: npm run lint
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies
run: npm ci
- name: tests
run: npm run test
old-node-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies --ignore-scripts
run: npm ci
- name: old node tests
run: node src/spec/old-node-tests.uvu.js
windows-tests:
runs-on: windows-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies
run: npm ci --ignore-scripts
- name: windows node tests
run: node src/spec/old-node-tests.uvu.js