dev #569
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
# max-parallel: 2 | |
matrix: | |
node-version: [16, 18, 20, 22] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
# test only nodejs v18 on win and mac | |
exclude: | |
- os: macos-latest | |
node-version: 16 | |
- os: macos-latest | |
node-version: 20 | |
- os: macos-latest | |
node-version: 22 | |
- os: windows-latest | |
node-version: 16 | |
- os: windows-latest | |
node-version: 20 | |
- os: windows-latest | |
node-version: 22 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup PHP for macos | |
if: matrix.os == 'macos-latest' | |
uses: shivammathur/setup-php@v2 | |
with: | |
tools: none | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build Packages | |
run: npm run build | |
- name: Run Tests | |
run: npm test | |
- name: Run Prettier | |
if: matrix.os == 'ubuntu-latest' | |
run: npm run format | |
- name: Run ESLint | |
if: matrix.os == 'ubuntu-latest' | |
run: npm run lint | |
- name: Upload coverage to Codecov | |
if: matrix.os == 'ubuntu-latest' | |
uses: codecov/codecov-action@v2 |