Skip to content

Merge pull request #115 from AMPnet/evmbro-patch-2 #477

Merge pull request #115 from AMPnet/evmbro-patch-2

Merge pull request #115 from AMPnet/evmbro-patch-2 #477

Workflow file for this run

name: ci
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Cache node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: SSH setup
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set git config
run: |
git config --global url."https://".insteadOf ssh://
- name: Install dependencies
run: npm i
- name: Run linter
run: npm run lint
- name: Generate build
run: npm run build