Skip to content

Commit

Permalink
ci: split up lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed May 29, 2024
1 parent 9be0647 commit 9a75ba6
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 30 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint-contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Lint contract/

on:
push:
branches-ignore: [main]
pull_request:
branches: [main]


jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Clean cache
working-directory: ./contracts
run: yarn cache clean
- name: Install packages for contracts
working-directory: ./contracts
run: yarn install
- name: Run eslint against contracts
working-directory: ./contracts
run: yarn lint
34 changes: 34 additions & 0 deletions .github/workflows/lint-json-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Lint json-server/

on:
push:
branches-ignore: [main]
pull_request:
branches: [main]


jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Clean cache
working-directory: ./json-server
run: yarn cache clean
- name: Install packages for json-server
working-directory: ./json-server
run: yarn install
- name: Run eslint against json-server
working-directory: ./json-server
run: yarn lint
34 changes: 34 additions & 0 deletions .github/workflows/lint-mint-backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Lint mint-backend/

on:
push:
branches-ignore: [main]
pull_request:
branches: [main]


jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Clean cache
working-directory: ./mint-backend
run: yarn cache clean
- name: Install packages for mint-backend
working-directory: ./mint-backend
run: yarn install
- name: Run eslint against mint-backend
working-directory: ./mint-backend
run: yarn lint
30 changes: 0 additions & 30 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,33 +64,3 @@ jobs:
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_TYPESCRIPT_ES: false
VALIDATE_TYPESCRIPT_STANDARD: false

##################################
# Run eslint against json-server #
##################################
- name: Install packages for json-server
working-directory: ./json-server
run: yarn install
- name: Run eslint against json-server
working-directory: ./json-server
run: yarn lint

###################################
# Run eslint against mint-backend #
###################################
- name: Install packages for mint-backend
working-directory: ./mint-backend
run: yarn install
- name: Run eslint against mint-backend
working-directory: ./mint-backend
run: yarn lint

################################
# Run eslint against contracts #
################################
- name: Install packages for contracts
working-directory: ./contracts
run: yarn install
- name: Run eslint against contracts
working-directory: ./contracts
run: yarn lint

0 comments on commit 9a75ba6

Please sign in to comment.