Verison Packages (stable-cadence) #191
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- feature/* | |
pull_request: | |
branches: | |
- master | |
- feature/* | |
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)" | |
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/feature/stable-cadence/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 |