Skip to content

Feat: Migrate CircleCI actions to Github Actions #648

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
28 changes: 0 additions & 28 deletions .circleci/config.yml

This file was deleted.

18 changes: 16 additions & 2 deletions .github/workflows/prettier.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Prettier
name: Format and Lint
on:
pull_request:
paths:
Expand All @@ -8,7 +8,7 @@ on:
- '**/*.yaml'

jobs:
format_check:
prettier:
name: Check formatting
runs-on: ubuntu-latest
steps:
Expand All @@ -26,3 +26,17 @@ jobs:
with:
dry: True
prettier_options: --check ${{ steps.changed-files.outputs.all_changed_files }}

eslint:
name: Check linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v46
id: changed-files
with:
files: |
**/*.js
separator: ' '
- run: npm install
- run: npm run eslint -- ${{ steps.changed-files.outputs.all_changed_files }}
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Test
on:
pull_request:
paths:
- '**/*.js'

jobs:
jest:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run test