Skip to content

Validate on windows and mac #103

Validate on windows and mac

Validate on windows and mac #103

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: Node.js CI
on:
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:

Check failure on line 13 in .github/workflows/pull_request.yml

View workflow run for this annotation

GitHub Actions / Node.js CI

Invalid workflow file

The workflow is not valid. .github/workflows/pull_request.yml (Line: 13, Col: 5): Required property is missing: runs-on
matrix:
node-version: [16.x, 18.x, 20.x]
runs-on: [ubuntu-latest, windows-latest, macos-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check for change files
run: pnpm run checkchange
- name: Build, test & lint
run: pnpm exec lage build test lint bundle
- name: Check if files updated
run: git diff --exit-code