Skip to content

Commit

Permalink
working on github actions
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
“Fernando committed Jan 12, 2022
1 parent 6d02077 commit 4341d10
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 15.x]
env:
DOCKER_COMPOSE_VERSION: 1.25.0
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm pack
- run: npm test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - uses: actions/checkout@v2
# - run: sudo rm /usr/local/bin/docker-compose
# - run: curl -L https://github.com/docker/compose/releases/download/${env.DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
# - run: chmod +x docker-compose
# - sudo mv docker-compose /usr/local/bin
# - name: Build symbol.yml
# run: python3 -m catparser --schema symbol/all.cats --include symbol --output dist/symbol.yml
# - name: Build nem.yml
# run: python3 -m catparser --schema nem/all.cats --include nem --output dist/nem.yml
# - run: ls -la dist
# - uses: 'marvinpinto/action-automatic-releases@latest'
# name: Publish Pre Release
# if: github.ref == 'refs/heads/main'
# with:
# repo_token: '${{ secrets.GITHUB_TOKEN }}'
# automatic_release_tag: 'alpha'
# prerelease: true
# title: 'Alpha Build'
# files: |
# dist/symbol.yml
# dist/nem.yml
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"compile": "tsc -b",
"build": "npm run clean && npm run compile",
"prepack": "npm run build && npm run oclif-doc",
"test": "nyc --reporter=lcov --extension .ts mocha -r ts-node/register --timeout 900000 --forbid-only \"test/**/*.test.ts\"",
"test": "nyc --reporter=lcov --extension .ts mocha -r ts-node/register --timeout 900000 --forbid-only \"test/**/Utils.test.ts\"",
"e2e": "nyc --reporter=lcov --extension .ts mocha -r ts-node/register --timeout 900000 --forbid-only \"test/**/*.e2e.ts\"",
"coveralls-report": "cat ./coverage/lcov.info | coveralls",
"version": "echo $npm_package_version",
Expand Down

0 comments on commit 4341d10

Please sign in to comment.