Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhuklinets authored Aug 20, 2024
1 parent 4bd9568 commit 77614f6
Showing 1 changed file with 1 addition and 78 deletions.
79 changes: 1 addition & 78 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,82 +186,7 @@ jobs:
os: ${{ runner.os }}
save-cache: true

lint-eslint:
needs:
- setup-build
runs-on: ubuntu-latest
timeout-minutes: 15

permissions:
actions: write

steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
show-progress: false

- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
node-version: ${{ needs.setup-build.outputs.node-version }}
os: ${{ runner.os }}

- name: Restore eslint cache
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: .cache/eslint
key: eslint-main-cache

- name: Lint
run: pnpm eslint-ci

- name: Remove cache
if: github.event_name == 'push'
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.event.repository.full_name }}
run: |
gh api --method DELETE /repos/{owner}/{repo}/actions/caches?key=eslint-main-cache ||
echo "Cache not found"
- name: Save eslint cache
if: github.event_name == 'push'
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: .cache/eslint
key: eslint-main-cache


lint-other:
needs:
- setup-build
runs-on: ubuntu-latest
timeout-minutes: 7

steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
show-progress: false

- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
node-version: ${{ needs.setup-build.outputs.node-version }}
os: ${{ runner.os }}

- name: Type check
run: pnpm type-check

- name: Lint project file structure
run: pnpm ls-lint

- name: Check git version
run: pnpm git-check

- name: Test schema
run: pnpm test-schema


build:
needs:
Expand Down Expand Up @@ -336,8 +261,6 @@ jobs:
release:
needs:
- setup-build
- lint-eslint
- lint-other
- build

if: github.repository == 'renovatebot/renovate' && github.event_name != 'pull_request'
Expand Down

0 comments on commit 77614f6

Please sign in to comment.