diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b279421b2..58dcdb6c66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,6 @@ name: 'Testing: CI' on: workflow_call: - inputs: - version: - description: 'The version of the published package' - required: true - type: 'string' concurrency: group: 'ci-${{ github.workflow }}-${{ github.head_ref || github.ref }}' @@ -175,8 +170,8 @@ jobs: echo "@google-gemini:registry=https://npm.pkg.github.com/" > .npmrc echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc - - name: 'Install bundle' - run: 'npm install @google-gemini/gemini-cli@${{ inputs.version }}' + - name: 'Install dependencies' + run: 'npm ci' - uses: 'preactjs/compressed-size-action@946a292cd35bd1088e0d7eb92b69d1a8d5b5d76a' with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..4bf71d2b50 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +# .github/workflows/lint.yml +name: 'Linting' + +on: + workflow_call: + +permissions: + contents: 'read' + +jobs: + lint: + name: 'Lint All' + runs-on: 'ubuntu-latest' + steps: + - name: 'Checkout' + uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5 + + - name: 'Set up Node.js' + uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'npm' + + - name: 'Install dependencies' + run: 'npm ci' + + - name: 'Run linting' + run: 'npm run lint:all' diff --git a/.github/workflows/orchestrator.yml b/.github/workflows/orchestrator.yml index 512c6a6ba4..013685f316 100644 --- a/.github/workflows/orchestrator.yml +++ b/.github/workflows/orchestrator.yml @@ -25,16 +25,19 @@ permissions: id-token: 'write' jobs: + lint: + name: 'Lint' + uses: './.github/workflows/lint.yml' + build-and-publish: name: 'Build and Publish CI Bundle' + needs: 'lint' uses: './.github/workflows/build-and-publish.yml' ci: name: 'CI Checks' - needs: 'build-and-publish' + needs: 'lint' uses: './.github/workflows/ci.yml' - with: - version: '${{ needs.build-and-publish.outputs.version }}' e2e: name: 'E2E Checks'