Skip to content

Commit

Permalink
add new GA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
omeraplak committed Oct 7, 2020
1 parent 0908e49 commit 45a1f35
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 13 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Push

on: push

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- name: Workflow run cleanup action
uses: rokroskar/workflow-run-cleanup-action@v0.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install & pack
run: |
npm install
npm pack
env:
CI: true
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.6.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.TEST_REPORTER_ID }}
with:
coverageCommand: npm run test
debug: true
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: npm Publish [released]

on:
release:
types: [released]

jobs:
publish-npm:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- run: |
npm install
npm run coverage
npm pack
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ npm install -g @pankod/pankod-cli
$ pankod-cli COMMAND
running command...
$ pankod-cli (-v|--version|version)
@pankod/pankod-cli/1.0.1 darwin-x64 node-v10.16.3
@pankod/pankod-cli/1.0.1 darwin-x64 node-v10.20.1
$ pankod-cli --help [COMMAND]
USAGE
$ pankod-cli COMMAND
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"postpack": "rm -f oclif.manifest.json",
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme && npm run sync-templates",
"sync-templates": "cp -r src/Templates lib/Templates",
"test": "jest --runInBand",
"test": "jest --runInBand --coverage",
"test:ops": "npm t -- src/modules/element-factory/workbenches/operations",
"version": "oclif-dev readme && git add README.md",
"lint": "eslint . --ext .ts",
Expand Down

0 comments on commit 45a1f35

Please sign in to comment.