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

[WIP] Replace Azure Pipeline with Github Actions #3594

Merged
merged 32 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c1670f4
commit yml files
eanzhao Jul 17, 2024
3974b28
Merge pull request #16 from eanzhao/feature/github-actions-readme-badges
eanzhao Jul 17, 2024
f90e762
fix publish-test-summary.yml
eanzhao Jul 17, 2024
a9f3464
Merge pull request #17 from eanzhao/feature/github-actions-readme-badges
eanzhao Jul 17, 2024
b5c3941
Split build and test workflows
eanzhao Jul 17, 2024
8b6c40d
Merge pull request #18 from eanzhao/feature/github-actions-readme-badges
eanzhao Jul 17, 2024
062042b
Refactor test.yml
eanzhao Jul 19, 2024
9e3ceb3
Merge pull request #19 from eanzhao/feature/github-actions-readme-badges
eanzhao Jul 19, 2024
5918f43
Commit yml files for using github actions to build and test solution.
eanzhao Jul 22, 2024
6c5d754
Improve test.yml
eanzhao Jul 22, 2024
3a21bea
Fix readme
eanzhao Jul 22, 2024
ab9dc69
Modify test.yml to not use gist.
eanzhao Jul 24, 2024
fb82e5a
Rename token name.
eanzhao Jul 24, 2024
9f4fe28
Update test results
actions-user Jul 24, 2024
561285b
Fix Commit and Push
eanzhao Jul 24, 2024
53eef1e
Merge branch 'feature/use-github-actions' of aelf:eanzhao/AElf into f…
eanzhao Jul 24, 2024
a641a44
Merge branch 'AElfProject:dev' into dev
eanzhao Jul 24, 2024
66f3880
Merge branch 'dev' into feature/use-github-actions
eanzhao Jul 24, 2024
846b2c5
Merge pull request #20 from eanzhao/feature/use-github-actions
eanzhao Jul 24, 2024
9e54196
Update joob Commit and push
eanzhao Jul 24, 2024
31d6cd9
Only run a few tests to save time
eanzhao Jul 24, 2024
e2fddaa
Fix Commit and push
eanzhao Jul 24, 2024
98cd7d2
Update test.yml
eanzhao Jul 26, 2024
4c5247b
Add codecov uploading to test.yml
eanzhao Jul 26, 2024
b2cf1db
Run all tests
eanzhao Jul 29, 2024
fa8b1bf
Update readme for current repo
eanzhao Jul 29, 2024
fcbc2bd
Merge dev and resolve conflicts
eanzhao Jul 29, 2024
166c09a
Fix readme
eanzhao Jul 29, 2024
99bb4f4
Fix myget badge.
eanzhao Jul 29, 2024
88cdb14
Add continue-on-error config to test.yml
eanzhao Jul 29, 2024
561603f
Tune impl of test workflow
eanzhao Aug 6, 2024
5022a3e
Merge branch 'dev' of aelf:AElfProject/AElf into feature/use-github-a…
eanzhao Aug 6, 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
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build
on:
push:
branches:
- dev
- master
- feature/use-github-actions

env:
DOTNET_INSTALL_DIR: "./.dotnet"

jobs:
build:

runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'

- name: Download AElf build tools
run: bash scripts/download_binary.sh

- name: Install Protobuf
run: bash scripts/install_protobuf.sh

- name: Build Solution
run: bash scripts/build.sh

22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test
on:
push:
branches:
- dev
- master
- feature/use-github-actions

jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Run dotnet ci action
uses: AElfProject/[email protected]
with:
commit-token: ${{ secrets.COMMIT_TOKEN }}
codecov-token: ${{ secrets.CODECOV_TOKEN }}
branch-name: "feature/badge-json"
solution-name: "AElf.All.sln"
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
[![GitHub closed issues](https://img.shields.io/github/issues-closed/aelfproject/aelf.svg)](https://app.gitkraken.com/glo/board/XKsOZJarBgAPseno)
[![lisence](https://img.shields.io/github/license/AElfProject/AElf.svg)](https://github.com/AElfProject/AElf/blob/dev/LICENSE)
[![Nuget](https://img.shields.io/nuget/v/AElf.OS.svg)](https://www.nuget.org/packages?q=aelf)
[![MyGet (with prereleases)](https://img.shields.io/myget/aelf-project-dev/vpre/aelf.os.svg?label=myget)](https://www.myget.org/gallery/aelf-project-dev)
[![MyGet (with prereleases)](https://img.shields.io/myget/aelf-project/vpre/aelf.os.svg?label=myget)](https://www.myget.org/gallery/aelf-project)
[![Twitter Follow](https://img.shields.io/twitter/follow/aelfblockchain.svg?label=%40aelfblockchain&style=social)](https://twitter.com/aelfblockchain)
[![Telegram](https://badgen.net/badge/telegram/join/blue?icon=telegram)](https://t.me/aelfdeveloper)

BRANCH | AZURE PIPELINES | TESTS | CODE COVERAGE
------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------
MASTER | [![Build Status](https://dev.azure.com/AElfProject/AElf/_apis/build/status/AElfProject.AElf?branchName=master)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=master) | [![Test Status](https://img.shields.io/azure-devops/tests/AElfProject/AElf/1/master)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=master) | [![codecov](https://codecov.io/gh/AElfProject/AElf/branch/master/graph/badge.svg)](https://codecov.io/gh/AElfProject/AElf)
DEV | [![Build Status](https://dev.azure.com/AElfProject/AElf/_apis/build/status/AElfProject.AElf?branchName=dev)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=dev) | [![Test Status](https://img.shields.io/azure-devops/tests/AElfProject/AElf/1/dev)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=dev) | [![codecov](https://codecov.io/gh/AElfProject/AElf/branch/dev/graph/badge.svg)](https://codecov.io/gh/AElfProject/AElf)
BRANCH | GITHUB ACTIONS BUILD | TESTS | CODE COVERAGE
------ |--------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------------------------------------------
MASTER | ![GitHub Workflow Build Status](https://github.com/AElfProject/AElf/actions/workflows/build.yml/badge.svg?branch=master) | ![GitHub Workflow Test Status](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AElfProject/AElf/feature/badge-json/master-test-results.json) | [![codecov](https://codecov.io/gh/AElfProject/AElf/branch/master/graph/badge.svg)](https://codecov.io/gh/AElfProject/AElf)
DEV | ![GitHub Workflow Build Status](https://github.com/AElfProject/AElf/actions/workflows/build.yml/badge.svg?branch=dev) | ![GitHub Workflow Test Status](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AElfProject/AElf/feature/badge-json/dev-test-results.json) | [![codecov](https://codecov.io/gh/AElfProject/AElf/branch/dev/graph/badge.svg)](https://codecov.io/gh/AElfProject/AElf)


Welcome to aelf's official GitHub repo !

Expand Down
Loading