From 81fe697dd38f889c6416e2030f78aa9da1b35fb4 Mon Sep 17 00:00:00 2001 From: Dan Livings Date: Fri, 27 Sep 2024 13:03:46 +0100 Subject: [PATCH] Test --- .github/workflows/playwright.yml | 8 ++++++-- .github/workflows/test.yml | 8 ++++---- 2 files changed, 10 insertions(+), 6 deletions(-) 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