Skip to content

Fix broken tests & incorrect package versions #172

Fix broken tests & incorrect package versions

Fix broken tests & incorrect package versions #172

Workflow file for this run

name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# gallium is the v16 lts
- name: Setup Node.js lts/gallium
uses: actions/setup-node@v2
with:
node-version: lts/gallium
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
# check license headers
- name: Check license headers
run: ./check-headers.sh
# install Flow CLI
- name: Install Flow CLI
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)"
# use fresh install
- name: Install Dependencies
run: npm ci
# check code with linter
- name: Lint Code
run: npm run lint
# build modules with microbundle
- name: Build
run: npm run build
# run provided tests
- name: Test Code
run: npm test