Skip to content

Commit

Permalink
shared lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnmclean committed Jun 3, 2024
1 parent 7a9cdca commit b52bb8c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 39 deletions.
23 changes: 23 additions & 0 deletions .github/shared/shared-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: shared-ci.yml

jobs:
lint:
name: lint
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 20

- name: 📥 Download deps
uses: bahmutov/npm-install@v1

- name: 🖼 Build icons
run: npm run build:icons

- name: 🔬 Lint
run: npm run lint
25 changes: 5 additions & 20 deletions .github/workflows/mobile-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,11 @@ permissions:
contents: read

jobs:
# lint:
# name: ⬣ ESLint
# runs-on: ubuntu-22.04
# steps:
# - name: ⬇️ Checkout repo
# uses: actions/checkout@v3

# - name: ⎔ Setup node
# uses: actions/setup-node@v3
# with:
# node-version: 20

# - name: 📥 Download deps
# uses: bahmutov/npm-install@v1

# - name: 🖼 Build icons
# run: npm run build:icons

# - name: 🔬 Lint
# run: npm run lint
lint:
name: ⬣ ESLint
uses: ./.github/shared/shared-ci.yml#lint
with:
node-version: '20'

# typecheck:
# name: ʦ TypeScript
Expand Down
23 changes: 4 additions & 19 deletions .github/workflows/web-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,12 @@ permissions:
actions: write
contents: read

jobs:
jobs:
lint:
name: ⬣ ESLint
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 20

- name: 📥 Download deps
uses: bahmutov/npm-install@v1

- name: 🖼 Build icons
run: npm run build:icons

- name: 🔬 Lint
run: npm run lint
uses: ./.github/shared/shared-ci.yml#lint
with:
node-version: '20'

typecheck:
name: ʦ TypeScript
Expand Down

0 comments on commit b52bb8c

Please sign in to comment.