diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 2e33704..42dc9e5 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -10,9 +10,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Read .nvmrc + run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT + id: nvm + - name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }} + uses: actions/setup-node@v4 with: - node-version: lts/* + node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - name: Install dependencies run: script/setup - name: Install Playwright Browsers diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d53bfad..8d15738 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,15 +12,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 - name: Read .nvmrc - run: echo "{NODE_VERSION}={$(cat .nvmrc)}" >> $GITHUB_OUTPUT + run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT id: nvm - name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - - name: Checkout repository - uses: actions/checkout@v4 - name: Install dependencies run: | ./script/setup