diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index 63af914878a..1e654b83487 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -21,6 +21,13 @@ inputs: runs: using: "composite" steps: + # Setup dev-env + - name: Setup ov + shell: bash + run: | + ./ov build + ./ov setup-env + # Just - name: Setup just uses: taiki-e/install-action@v2 diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 59212efa2fe..e81e6f8c0b8 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -109,23 +109,18 @@ jobs: - name: Setup CI env uses: ./.github/actions/setup-env with: - # PDM is needed to run Vale - setup_python: "true" - # Node.js is needed by lint actions. - install_recipe: "node-install" - - - name: Cache pre-commit envs - uses: actions/cache@v4 - with: - path: ~/.cache/pre-commit - key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} + setup_python: false + # Python is not needed to run lint. + setup_nodejs: false + # Node.js is not needed to run lint. + install_recipe: "" - name: Run pre-commit to lint files env: GITHUB_TOKEN: ${{ github.token }} run: | - just precommit - just lint + ./ov sudo rm -rf /opt/.npm + ./ov just lint validate-codeowners: name: Validate CODEOWNERS