Skip to content

Commit 901bd35

Browse files
danney-chunbang9
andauthored
[CLNP-7689] Move ci from circle ci to GitHub action (#1371)
## For Internal Contributors * Follow the [Scaled Trunk-Based Development workflow](https://trunkbaseddevelopment.com/) * Branch naming format: `{type}/TICKET_ID/description` * Type: `feat` / `fix` / `chore` / `doc` / `release` * Receive PR review approvals * Rebase your branch with the main branch and wait for CI to pass * Squash merge your commit * Use imperative language in the title and description * Follow the provided template for PR description and squashing ### Template ``` // PR title (Required) [type]: A short description of the changes in imperative language. // PR description (Optional) - 먼저 CircleCI에서 돌고 있는 Build and Test만 github action으로 migration 했습니다. - auto release 는 추후 작업을 진행을 할 예정입니다. // Footer (Recommended) Fixes [<TICKET_ID>](https://sendbird.atlassian.net/browse/<TICKET_ID>) // Changelogs (Recommended) // Add (internal) at the end of each changelog if internal. ### Changelogs // Co-authors // Add this if you pair programmed or they made significant contributions to the ideas in the code and you want to thank them. Co-authored-by: Name [email protected], Name2 [email protected] ``` ### Checklist Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If unsure, ask the members. This is a reminder of what we look for before merging your code. - [ ] **All tests pass locally with my changes** - [ ] **I have added tests that prove my fix is effective or that my feature works** - [ ] **Public components / utils / props are appropriately exported** - [ ] I have added necessary documentation (if appropriate) ## External Contributions This project is not yet set up to accept pull requests from external contributors. If you have a pull request that you believe should be accepted, please contact the Developer Relations team <[email protected]> with details and we'll evaluate if we can set up a [CLA](https://en.wikipedia.org/wiki/Contributor_License_Agreement) to allow for the contribution. --------- Co-authored-by: Hyungu Kang | Airen <[email protected]>
1 parent b2d1ab4 commit 901bd35

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and Test
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
push:
8+
branches:
9+
- main
10+
concurrency:
11+
group: build-and-test-${{ github.head_ref || github.ref_name }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build-and-test:
16+
runs-on: ubuntu-latest
17+
18+
env:
19+
BOT_GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '16.19.1'
29+
cache: 'yarn'
30+
31+
- name: Install dependencies
32+
run: |
33+
yarn install --immutable
34+
35+
- name: Run lint
36+
if: ${{ success() }}
37+
run: |
38+
yarn lint
39+
40+
- name: Run build
41+
if: ${{ success() }}
42+
run: |
43+
yarn build
44+
45+
- name: Run test
46+
if: ${{ success() }}
47+
timeout-minutes: 15
48+
run: |
49+
yarn test --forceExit --runInBand

.github/workflows/pr-comment-bot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ on:
44
types: [created]
55
jobs:
66
pr-comment:
7+
if: ${{ github.event.issue.pull_request }}
78
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/checkout@v4
1011
# see list of commands: https://github.com/sendbird/release-automation-action#commands
1112
- uses: sendbird/release-automation-action@latest
1213
with:
1314
gh_token: ${{ secrets.GITHUB_TOKEN }}
14-
circleci_token: ${{ secrets.CIRCLECI_API_TOKEN }}
1515
product: 'uikit'
1616
platform: 'js'
1717
framework: 'react'
1818
product_jira_project_key: 'UIKIT'
1919
product_jira_version_prefix: 'js_uikit'
20+
ci: 'github'
File renamed without changes.

0 commit comments

Comments
 (0)