Skip to content

Commit

Permalink
build: merge code lint and test both jobs in single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emgk committed Oct 10, 2023
1 parent 38d6772 commit 17c5b82
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 67 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code linting
name: SUI 3 Codes review

on:
pull_request:
Expand All @@ -11,7 +11,7 @@ on:
- master

jobs:
code-linting:
fetch-repos:
runs-on: ubuntu-latest
steps:
- name: Checkout sui-docs repository
Expand All @@ -24,12 +24,12 @@ jobs:
- name: Grant execute permission for sui-docs
run: chmod +x ./sui-docs

# - name: Checkout sui-css repository
# uses: actions/checkout@v3
# with:
# repository: wpmudev/sui-css
# path: ./sui-docs/packages/sui-css
# ref: development
# - name: Checkout sui-css repository
# uses: actions/checkout@v3
# with:
# repository: wpmudev/sui-css
# path: ./sui-docs/packages/sui-css
# ref: development

- name: Checkout sui-icons repository
uses: actions/checkout@v3
Expand All @@ -46,6 +46,10 @@ jobs:
- name: List content
run: pwd && ls

code-testing:
needs: [fetch-repos]
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -54,6 +58,13 @@ jobs:
- name: Install dependencies
run: cd ./sui-docs && npm install --force

- name: Run tests
run: cd ./sui-docs && npm run test

code-linting:
needs: [fetch-repos]
runs-on: ubuntu-latest
steps:
- name: Run eslint on changed files
uses: tj-actions/eslint-changed-files@v21
with:
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/code-test.yml

This file was deleted.

0 comments on commit 17c5b82

Please sign in to comment.