Skip to content

New function GetMergeCells has been added #132

New function GetMergeCells has been added

New function GetMergeCells has been added #132

Workflow file for this run

name: Build
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
go-version: [1.22.x]
os: [ubuntu-latest]
targetplatform: [x64]
runs-on: ${{ matrix.os }}
environment: production
env:
GOOS: js
GOARCH: wasm
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: false
- name: Checkout code
uses: actions/checkout@v4
- name: Get dependencies
working-directory: ./cmd
run: |
go vet ./...
- name: Test
run: |
cd cmd
GOOS=js GOARCH=wasm GO111MODULE=on go test -exec="$(go env GOROOT)/misc/wasm/go_js_wasm_exec" -v ./... -coverprofile="coverage.txt" -covermode=atomic
- name: Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
directory: ./cmd
file: coverage.txt
flags: unittests
name: codecov-umbrella
- name: Build WASM
run: |
cd cmd
GOOS=js GOARCH=wasm GO111MODULE=on CGO_ENABLED=0 go build -v -a -ldflags="-w -s" -gcflags=-trimpath="$(go env GOPATH)" -asmflags=-trimpath="$(go env GOPATH)" -o ../dist/excelize.wasm main.go
gzip -f --best ../dist/excelize.wasm
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: NPM Build
run: |
npm install
node ./node_modules/.bin/rollup -c
cp LICENSE ./dist
cp README.md ./dist
cp package.json ./dist
cp src/index.d.ts ./dist