Luke Sinclair пре 4 година
родитељ
комит
a90551c0ad
1 измењених фајлова са 17 додато и 29 уклоњено
  1. 17 29
      .github/workflows/awesome_bot.yml

+ 17 - 29
.github/workflows/awesome_bot.yml

@@ -1,36 +1,24 @@
-# This is a basic workflow to help you get started with Actions
-
-name: Ruby
-
-# Controls when the action will run. 
+name: Awesome Bot
 on:
 on:
-  # Triggers the workflow on push or pull request events but only for the master branch
   push:
   push:
-    branches: [ master ]
-  pull_request:
-    branches: [ master ]
-
-  # Allows you to run this workflow manually from the Actions tab
-  workflow_dispatch:
+    branches:
+      - master
 
 
-# A workflow run is made up of one or more jobs that can run sequentially or in parallel
 jobs:
 jobs:
-  # This workflow contains a single job called "build"
   build:
   build:
-    # The type of runner that the job will run on
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-
-    # Steps represent a sequence of tasks that will be executed as part of the job
     steps:
     steps:
-      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-      - uses: actions/checkout@v2
-
-      # Setup Ruby 2.6
-      - name: Setup Ruby 2.6
-        uses: actions/setup-ruby@v1
-        with:
-          ruby-version: 2.6.x
-      - name: Checks
-        run: |
-          gem install awesome_bot
-          awesome_bot README.md
+    - uses: actions/checkout@v1
+    - name: Set up Ruby
+      uses: actions/setup-ruby@v1
+      with:
+        ruby-version: 2.7.x
+    - name: Install Awesome Bot
+      run: gem install awesome_bot
+    - name: Run Awesome Bot
+      run: awesome_bot README.md --request-delay 1 --allow-dupe --white-list igor.io,symfony,toranproxy.com,vagrantup.com,3v4l.org,voicesoftheelephpant.com,drupal.org,oreilly.com
+    - uses: actions/upload-artifact@v1
+      if: failure()
+      with:
+        name: ab-results
+        path: ab-results-README.md-filtered.json