forked from decentraland/marketplace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add CI pipeline (decentraland#370)
* Add CI pipeline * Only run on push * Add coveralls
- Loading branch information
1 parent
588939f
commit 8cc8488
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
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
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 |