Skip to content

Commit

Permalink
chore: Add CI pipeline (decentraland#370)
Browse files Browse the repository at this point in the history
* Add CI pipeline

* Only run on push

* Add coveralls
  • Loading branch information
LautaroPetaccio authored Jul 26, 2021
1 parent 588939f commit 8cc8488
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on: [push, pull_request]

jobs:
Build-and-test-webapp:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./webapp
steps:
- uses: actions/checkout@master
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test -- --coverage
if: ${{ always() }}
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
Build-and-test-indexer:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./indexer
steps:
- uses: actions/checkout@master
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install
run: npm ci
- name: Build
run: |
npm run build-data -- --network mainnet
npm run codegen
npm run build

0 comments on commit 8cc8488

Please sign in to comment.