Skip to content

wip: wasm onesdk

wip: wasm onesdk #116

Workflow file for this run

name: CI
on:
- push
jobs:
build-and-lint:
runs-on: ubuntu-latest
steps:
# Setup environment and checkout the project master
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
registry-url: https://registry.npmjs.org/
scope: "@superfaceai"
node-version: "14"
- name: Checkout
uses: actions/checkout@v2.3.4
# Setup yarn cache
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2.1.3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# Install and run lint
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Build
run: yarn build
license-check:
runs-on: ubuntu-latest
steps:
# Setup environment and checkout the project master
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
registry-url: https://registry.npmjs.org/
scope: "@superfaceai"
node-version: "14"
- name: Checkout
uses: actions/checkout@v2.3.4
# Setup yarn cache
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2.1.3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# Install and run license checker
- name: Install dependencies
run: yarn install
- name: Install License checker
run: |
yarn global add license-checker
echo "$(yarn global bin)" >> $GITHUB_PATH
- name: Check licenses
run: "license-checker --onlyAllow '0BDS;MIT;Apache-2.0;ISC;BSD-3-Clause;BSD-2-Clause;CC-BY-4.0;CC-BY-3.0;BSD;CC0-1.0;Unlicense;Python-2.0' --summary"