Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: test 15 #42

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
63367f2
add ci test
ielashi Mar 21, 2024
121b6a6
.
ielashi Mar 21, 2024
07de1e5
Merge pull request #1 from ielashi/ielashi/ci_test
ielashi Mar 21, 2024
fe6560c
test 2
ielashi Mar 21, 2024
cf94074
.
ielashi Mar 21, 2024
997be7d
Merge pull request #2 from ielashi/ielashi/test_2
ielashi Mar 21, 2024
7797384
test: test 3
ielashi Mar 21, 2024
f310fa3
.
ielashi Mar 21, 2024
a2be1ee
Merge pull request #3 from ielashi/ielashi/test_3
ielashi Mar 21, 2024
f2022d1
test
ielashi Mar 21, 2024
e8754be
.
ielashi Mar 21, 2024
7095ca9
Merge pull request #4 from ielashi/ielashi/test_5
ielashi Mar 21, 2024
b697b5d
test: test 6
ielashi Mar 21, 2024
867feab
.
ielashi Mar 21, 2024
7ab7923
test: test 7
ielashi Mar 21, 2024
c176ccb
test: test 8
ielashi Mar 21, 2024
d0c79fe
Merge pull request #5 from ielashi/ielashi/test_6
ielashi Mar 21, 2024
5a6d75b
.
ielashi Mar 21, 2024
0ee875f
Merge pull request #6 from ielashi/ielashi/test_7
ielashi Mar 21, 2024
469accc
test: test 8
ielashi Mar 21, 2024
5d231e7
.
ielashi Mar 21, 2024
adc9fda
Merge pull request #7 from ielashi/ielashi/test_8
ielashi Mar 21, 2024
fe13ee2
test: test 9
ielashi Mar 21, 2024
45300d0
.
ielashi Mar 21, 2024
ef62d27
Merge pull request #8 from ielashi/ielashi/test_9
ielashi Mar 21, 2024
78a5ded
test: 10
ielashi Mar 21, 2024
6a861d8
.
ielashi Mar 21, 2024
9abd655
Merge pull request #9 from ielashi/ielashi/test_10
ielashi Mar 21, 2024
0d9ed7e
test: test 11
ielashi Mar 21, 2024
a8d5a4b
.
ielashi Mar 21, 2024
a35c45e
Merge pull request #10 from ielashi/ielashi/test_11
ielashi Mar 21, 2024
69106f2
test: test 13
ielashi Mar 21, 2024
d8210f5
.
ielashi Mar 21, 2024
95fca06
Merge pull request #11 from ielashi/ielashi/test_13
ielashi Mar 21, 2024
7fae336
test: test 14
ielashi Mar 21, 2024
4d0427d
test: test 14
ielashi Mar 21, 2024
06da398
Merge pull request #12 from ielashi/ielashi/test_14
ielashi Mar 21, 2024
3b6d762
test: test 15
ielashi Mar 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/CommentPR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Comment on the pull request

# read-write repo token
# access to secrets
on:
workflow_run:
workflows: ["Receive PR"]
types:
- completed

jobs:
upload:
runs-on: ubuntu-latest
steps:

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: pr-number.zip
- run: unzip pr-number.zip

- name: 'Download canbench comments'
uses: actions/[email protected]
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }},
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "canbench_comments"
})[0];
var download = await github.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/canbench_comments.zip', Buffer.from(download.data));
- run: unzip canbench_comments.zip

- name: 'Set PR'
id: set_pr
run: echo "::set-output name=pr_number::$(cat ./pr-number)"

- name: 'Read PR'
run: echo "The number is ${{ steps.set_pr.outputs.pr_number }}"

- name: Post comment
uses: thollander/actions-comment-pull-request@v2
with:
filePath: ./canbench_comment
comment_tag: test
pr_number: ${{ steps.set_pr.outputs.pr_number }}

34 changes: 34 additions & 0 deletions .github/workflows/ReceivePR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Receive PR

# read-only repo token
# no access to secrets
on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Save PR number
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/NR

- name: Save canbench comments
run: |
mkdir -p ./canbench_comments
echo "# \`canbench\`" > ./canbench_comments/canbench_comment

- uses: actions/upload-artifact@v4
with:
name: pr-number
path: pr/NR

- uses: actions/upload-artifact@v4
with:
name: canbench_comments
path: canbench_comments/

168 changes: 0 additions & 168 deletions .github/workflows/ci.yml

This file was deleted.

Loading