Skip to content

Commit

Permalink
Separate CI for lint and test (#101)
Browse files Browse the repository at this point in the history
* Separate CI jobs into 'prettier' and 'test'

* Change 'prettier' -> 'lint'
  • Loading branch information
IsaacCheng9 committed Feb 4, 2024
1 parent 53fdcc0 commit fad4c94
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: lint

# Controls when the action will run.
on:
# Triggers the workflow on push events.
push:
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

jobs:
prettier:
# The type of runner that the job will run on.
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
# access it.
- uses: actions/checkout@v3

- name: Format with Prettier
uses: creyD/prettier_action@v4.3
with:
commit_message: Format code with Prettier
18 changes: 2 additions & 16 deletions .github/workflows/main.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: test

# Controls when the action will run.
on:
Expand All @@ -8,21 +8,7 @@ on:
workflow_dispatch:

jobs:
prettier:
# The type of runner that the job will run on.
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
# access it.
- uses: actions/checkout@v3

- name: Format with Prettier
uses: creyD/prettier_action@v4.3
with:
commit_message: Format code with Prettier

perform-backend-unit-tests:
backend-unit-tests:
runs-on: ubuntu-latest

strategy:
Expand Down

0 comments on commit fad4c94

Please sign in to comment.