From b52bb8c9d56b2475e9215edd7f396a9d9e705a93 Mon Sep 17 00:00:00 2001 From: Shawn Mclean Date: Mon, 3 Jun 2024 12:19:05 -0500 Subject: [PATCH] shared lint --- .github/shared/shared-ci.yml | 23 +++++++++++++++++++++++ .github/workflows/mobile-deploy.yml | 25 +++++-------------------- .github/workflows/web-deploy.yml | 23 ++++------------------- 3 files changed, 32 insertions(+), 39 deletions(-) create mode 100644 .github/shared/shared-ci.yml diff --git a/.github/shared/shared-ci.yml b/.github/shared/shared-ci.yml new file mode 100644 index 00000000..ee6d4932 --- /dev/null +++ b/.github/shared/shared-ci.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/mobile-deploy.yml b/.github/workflows/mobile-deploy.yml index 10b4eabe..57b7c185 100644 --- a/.github/workflows/mobile-deploy.yml +++ b/.github/workflows/mobile-deploy.yml @@ -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 diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml index 627625da..44f4aff4 100644 --- a/.github/workflows/web-deploy.yml +++ b/.github/workflows/web-deploy.yml @@ -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