Github action node js version #42166
Answered
by
aduh95
daniavander
asked this question in
General
-
Hi , A tri to run github action on:
push:
branches:
- main
jobs:
e2e-tests:
runs-on: windows-latest # or macos-latest, windows-latest, ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
node-version: '14'
- uses: actions/setup-node@v1
- uses: microsoft/playwright-github-action@v1
- name: Install dependencies
run: npx playwright install
- name: run tests
run: npm run cicd
- name: push artifacts
if: always()
uses: actions/upload-artifact@v2
with:
name: my-artifact
path: |
playwright-report/**
test-results/**
if-no-file-found: error
retention-days: 60 But i get this message: Can u help me pls? |
Beta Was this translation helpful? Give feedback.
Answered by
aduh95
Mar 3, 2022
Replies: 1 comment
-
Replace
with
That would tell the runner to install the latest available Node.js LTS version, which is almost certainly what you need here. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
avivkeller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace
with
That would tell the runner to install the latest available Node.js LTS version, which is almost certainly what you need here.