Parcourir la source

Updated to new YAML configuration for github actions

Steve Kemp il y a 5 ans
Parent
commit
f190eaad8e

+ 0 - 38
.github/main.workflow

@@ -1,38 +0,0 @@
-# pushes trigger the testsuite
-workflow "Push Event" {
-  on = "push"
-  resolves = ["Test"]
-}
-
-# pull-requests trigger the testsuite
-workflow "Pull Request" {
-  on = "pull_request"
-  resolves = ["Test"]
-}
-
-# releases trigger new binary artifacts
-workflow "Handle Release" {
-  on = "release"
-  resolves = ["Upload"]
-}
-
-##
-## The actions
-##
-
-
-##
-## Run the test-cases, via .github/run-tests.sh
-##
-action "Test" {
-  uses = "skx/github-action-tester@master"
-}
-
-##
-## Build the binaries, via .github/build, then upload them.
-##
-action "Upload" {
-  uses = "skx/github-action-publish-binaries@master"
-  args = "rss2hook-*"
-  secrets = ["GITHUB_TOKEN"]
-}

+ 10 - 0
.github/workflows/pull_request.yml

@@ -0,0 +1,10 @@
+on: pull_request
+name: Pull Request
+jobs:
+  test:
+    name: Test
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@master
+    - name: Test
+      uses: skx/github-action-tester@master

+ 13 - 0
.github/workflows/push.yml

@@ -0,0 +1,13 @@
+on:
+  push:
+    branches:
+    - master
+name: Push Event
+jobs:
+  test:
+    name: Test
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@master
+    - name: Test
+      uses: skx/github-action-tester@master

+ 14 - 0
.github/workflows/release.yml

@@ -0,0 +1,14 @@
+on: release
+name: Handle Release
+jobs:
+  upload:
+    name: Upload
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@master
+    - name: Upload
+      uses: skx/github-action-publish-binaries@master
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      with:
+        args: rss2hook-*