cypress-io / github-action

GitHub Action for running Cypress end-to-end & component tests

Home Page:https://on.cypress.io/guides/continuous-integration/github-actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: The runs.using key in action.yml must be one of:

erikc96 opened this issue · comments

Error:


Error: The runs.using key in action.yml must be one of: [composite docker node12 node16], got node20

Hello, I'm getting this error with this config:

    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Run DB with Docker
        run: docker-compose -f docker-compose.yaml up -d db elasticsearch init-es-index

      - name: Install prerequisites
        run: cd app && npm install --include dev

      - name: Set Up DB
        run: cd app && npx prisma generate && npx prisma migrate reset --force

      - name: Cypress run
        uses: cypress-io/github-action@v6
        with:
          start: npm start
          working-directory: app-test

Action.yml seems to be a file in this codebase, so not sure how to fix.

@erikc96

Your environment does not support node20, so you will need to downgrade to cypress-io/github-action@v5. See README > Compatibility.

  • Which version of GitHub are you using?
  • Are you running on a GitHub-hosted runner or a self-hosted runner?
  • If you view the Actions log, what runner version is shown under "Set up job"? For comparison look at job 16751185924 where it shows "Current runner version: '2.309.0'". You need a minimum of 2.308.0 for node20 support.

@erikc96

Do you need further assistance on this issue? You will probably need to ensure your environment is updated. See GitHub Actions: Transitioning from Node 16 to Node 20 announced on Sep 22, 2023 the beginning of the deprecation process for node16 actions.

Closing due to lack of response.