You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2022/10/31 03:31:38 UTC

[skywalking-infra-e2e] branch gha updated (faad1ce -> f580ca0)

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a change to branch gha
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git


 discard faad1ce  Improve GitHub Actions usability and speed by using composite actions' new feature
     new f580ca0  Improve GitHub Actions usability and speed by using composite actions' new feature

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (faad1ce)
            \
             N -- N -- N   refs/heads/gha (f580ca0)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 action.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


[skywalking-infra-e2e] 01/01: Improve GitHub Actions usability and speed by using composite actions' new feature

Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch gha
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git

commit f580ca010d4715ede21d3e7f81411a665f894a7a
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Mon Oct 31 11:31:31 2022 +0800

    Improve GitHub Actions usability and speed by using composite actions' new feature
---
 action.yaml | 43 +++++++++++++++++++++++++++++++++++--------
 1 file changed, 35 insertions(+), 8 deletions(-)

diff --git a/action.yaml b/action.yaml
index 37dbc01..40a4dd2 100644
--- a/action.yaml
+++ b/action.yaml
@@ -24,21 +24,48 @@ inputs:
   log-dir:
     description: The container logs directory
     required: false
-
 runs:
   using: "composite"
   steps:
+    - name: Set up Go 1.18
+      uses: actions/setup-go@v2
+      with:
+        go-version: 1.18
+    - uses: actions/cache@v3
+      if: runner.os == 'Linux'
+      with:
+        path: |
+          ~/.cache/go-build
+          ~/go/pkg/mod
+        key: ${{ runner.os }}-go-${{ hashFiles(join([github.action_path, 'go.sum'], "/") }}
+        restore-keys: |
+          ${{ runner.os }}-go-
+    - uses: actions/cache@v3
+      if: runner.os == 'macOS'
+      with:
+        path: |
+          ~/Library/Caches/go-build
+          ~/go/pkg/mod
+        key: ${{ runner.os }}-go-${{ hashFiles(join([github.action_path, 'go.sum'], "/") }}
+        restore-keys: |
+          ${{ runner.os }}-go-
+    - uses: actions/cache@v3
+      if: runner.os == 'Windows'
+      with:
+        path: |
+          ~\AppData\Local\go-build
+          ~\go\pkg\mod
+        key: ${{ runner.os }}-go-${{ hashFiles(join([github.action_path, 'go.sum'], "/") }}
+        restore-keys: |
+          ${{ runner.os }}-go-
     - shell: bash
-      run: |
-        make -C $GITHUB_ACTION_PATH docker
-        docker run -v $(pwd):/tmp -w /tmp --entrypoint=sh docker.io/apache/e2e:latest -c "cp /usr/local/bin/e2e /tmp/e2e"
-        install ./e2e /usr/local/bin
+      run: make -C $GITHUB_ACTION_PATH install DESTDIR=/usr/local/bin
     - name: E2E Dir Generator
       id: 'e2e-dir-generator'
       shell: bash
       run: |
         WORK_DIR="${{ runner.temp }}/skywalking-infra-e2e"
-        echo "name=work::$WORK_DIR" >> $GITHUB_OUTPUT
+        echo "work=$WORK_DIR" >> $GITHUB_OUTPUT
 
         LOG_DIR=""
         LOG_JOB_DIR=""
@@ -67,8 +94,8 @@ runs:
           LOG_DIR="$WORK_DIR/${{ inputs.log-dir }}"
           LOG_JOB_DIR="$WORK_DIR/${{ inputs.log-dir }}"
         fi
-        echo "name=log::$LOG_DIR" >> $GITHUB_OUTPUT
-        echo "name=log-case::$LOG_JOB_DIR" >> $GITHUB_OUTPUT
+        echo "log=$LOG_DIR" >> $GITHUB_OUTPUT
+        echo "log-case=$LOG_JOB_DIR" >> $GITHUB_OUTPUT
         echo "SW_INFRA_E2E_LOG_DIR=$LOG_DIR" >> $GITHUB_ENV
     - shell: bash
       run: |