Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

Add Github Action

Ingvar Stepanyanf77ddac652a8
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
new file mode 100644
index 00000000..2fb00152
--- /dev/null
+++ b/.github/workflows/node.js.yml
@@ -0,0 +1,22 @@
+# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
+
+name: Node.js CI
+
+on: [push, pull_request]
+
+jobs:
+ build:
+
+ runs-on: [ubuntu-latest, windows-latest]
+
+ steps:
+ - uses: actions/checkout@v2
+ - id: nvmrc
+ uses: browniebroke/read-nvmrc-action@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '${{ steps.nvmrc.outputs.node_version }}'
+ - run: npm ci
+ - run: npm run build
+ - run: npm run sizereport