From ef062e2cee863971ae4e6a7b9e6d2a84aa5aa679 Mon Sep 17 00:00:00 2001 From: Trevor Manz Date: Fri, 4 Dec 2020 15:45:06 -0500 Subject: [PATCH 1/3] Add test GH Action for windows build" --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..124f6cba --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: Node.js CI + +on: [push] + +jobs: + build: + + runs-on: windows-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build --if-present From 1920f19383ec3c65972bd4d10e23752046604e64 Mon Sep 17 00:00:00 2001 From: Trevor Manz Date: Fri, 4 Dec 2020 15:50:18 -0500 Subject: [PATCH 2/3] fix windows --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0abfc9ec..1e6a0b90 100644 --- a/package.json +++ b/package.json @@ -51,14 +51,14 @@ "serve-static": "^1.14.1" }, "scripts": { - "build": "npm run build:clean; run-p build:browser build:node;", + "build": "npm run build:clean && run-p build:browser build:node", "build:clean": "rimraf dist-node/ dist-browser/", "build:node": "parcel build src/geotiff.js --target node --out-dir dist-node/", "build:browser": "parcel build src/geotiff.js --target browser --out-dir dist-browser/ --global GeoTIFF --public-url .", "watch:browser": "parcel watch src/geotiff.js --target browser --out-dir dist-browser/ --global GeoTIFF --public-url .", "dev": "parcel serve test/data/** test/index.html src/ --port 8090", - "dev:clean": "rm -rf dist/ .cache/", - "docs": "rm -rf docs/; jsdoc -c .jsdoc.json -r src README.md -d docs", + "dev:clean": "rimraf dist/ .cache/", + "docs": "rimraf docs/ && jsdoc -c .jsdoc.json -r src README.md -d docs", "lint": "eslint src", "lint:fix": "eslint src --fix", "prepare": "npm run build", From df4368912b796770b5264fe451a3e6fafaa60965 Mon Sep 17 00:00:00 2001 From: Trevor Manz Date: Fri, 4 Dec 2020 15:53:13 -0500 Subject: [PATCH 3/3] remove working github action --- .github/workflows/test.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 124f6cba..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Node.js CI - -on: [push] - -jobs: - build: - - runs-on: windows-latest - - strategy: - matrix: - node-version: [8.x, 10.x, 12.x, 14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm run build --if-present