Skip to content

feat: upgrade sheetjs(aka xlsx) to 0.20.0 #516

feat: upgrade sheetjs(aka xlsx) to 0.20.0

feat: upgrade sheetjs(aka xlsx) to 0.20.0 #516

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node_version: [14, 16]
include:
- os: macos-latest
node_version: 16
- os: windows-latest
node_version: 16
fail-fast: false
name: "Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }}"
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v2
- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install dependencies
run: pnpm install
- name: Build
if: ${{ matrix.os != 'windows-latest' }}
run: pnpm run build
- name: Build cli on windows
if: ${{ matrix.os == 'windows-latest' }}
run: pnpm run build:cli && pnpm run build:cli-service
- name: Test
run: pnpm run test
lint:
runs-on: ubuntu-latest
name: "Lint: node-16, ubuntu-latest"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6
- name: Prepare
run: |
pnpm install
pnpm run build
- name: Lint
run: pnpm run lint