Skip to content

refactor: use platform var. #91

refactor: use platform var.

refactor: use platform var. #91

Workflow file for this run

name: CI
on:
push:
branches:
- main
- bananas-eol
pull_request:
branches:
- main
jobs:
ci:
name: CI
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: ['20.11.0', '22.3.0']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup Node
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.version }}
- name: Install Dependencies
run: npm ci
- name: Save error log
uses: actions/upload-artifact@v4.3.0
if: ${{ failure() }}
with:
name: npm-debug-log-${{ hashFiles('package-lock.json') }}
path: npm-debug.log
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Report Coverage
uses: codecov/codecov-action@v4.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Pack
run: npm pack