Skip to content

chore: Converted CircleCi to Github workflows#4884

Open
ruben-rebelo wants to merge 1 commit intomainfrom
chore/github-workflows
Open

chore: Converted CircleCi to Github workflows#4884
ruben-rebelo wants to merge 1 commit intomainfrom
chore/github-workflows

Conversation

@ruben-rebelo
Copy link
Collaborator

This is a Simple PR to convert all the jobs from CircleCi to GitHub Actions to improve the maintenance.

Motivation

The main motivation here is maintainability, GitHub actions is much more stable than CircleCi and easier to maintain.

Related issue

N/a

Test plan

N/a

@github-actions
Copy link

Hey @ruben-rebelo, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here.

Copy link
Collaborator

@BogiKay BogiKay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work 🔥 Left a few comments with ideas for potential improvements

- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.19.0'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we extract node version to env var? or use version from .nvmrc (setup-node action has an option node-version-file)

}

deploy-docs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deploy-docs runs even if checks fail. I'd run it when all steps pass

Suggested change
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [lint, typescript, unit-tests, build-package]

branches:
- main
pull_request:

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about defining concurrency rules to limit runs on frequent pushes?

Suggested change
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't count, but looks like all jobs use the same steps (checkout, setup node, install deps...). Let's create a composite action with steps that we need to setup everything before we run a job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants