Browse Source

Merge pull request #308 from vmarkovtsev/master

Add the sample hercules Action usage
Vadim Markovtsev 5 years ago
parent
commit
3b7d40cb80
2 changed files with 27 additions and 2 deletions
  1. 23 0
      .github/workflows/main.yml
  2. 4 2
      .travis.yml

+ 23 - 0
.github/workflows/main.yml

@@ -0,0 +1,23 @@
+on: [push]
+
+jobs:
+  hercules-charts:
+    runs-on: ubuntu-latest
+    name: Charts generated by src-d/hercules
+    steps:
+      - uses: actions/checkout@master
+      - name: Hercules
+        id: hercules
+        uses: src-d/hercules@master
+      - uses: actions/upload-artifact@master
+        with:
+          name: burndown-project
+          path: /github/home/hercules/project.png
+      - uses: actions/upload-artifact@master
+          with:
+            name: burndown-people
+            path: /github/home/hercules/people.png
+      - uses: actions/upload-artifact@master
+          with:
+            name: overwrites
+            path: /github/home/hercules/matrix.png

+ 4 - 2
.travis.yml

@@ -75,12 +75,14 @@ script:
 jobs:
   include:
     - stage: test
-      addons: false
       language: generic
       env: DOCKER_BUILD=1
       before_install: skip
       install: skip
-      script: docker build -t srcd/hercules .
+      script:
+        - docker build -t srcd/hercules .
+        - docker run --rm srcd/hercules hercules --help
+        - docker run --rm srcd/hercules labours --help
     - stage: deploy
       os: osx
       osx_image: xcode9.3