Skip to content

Commit

Permalink
Update all actions
Browse files Browse the repository at this point in the history
  • Loading branch information
neongreen committed Aug 6, 2023
1 parent 6159724 commit 1242932
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/cache@v2

- uses: actions/cache@v3
with:
path: |
~/.npm
Expand All @@ -24,15 +26,20 @@ jobs:
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '16.x' # Same as in package.json

- name: Use .env.development
# NB: copying instead of symlinking due to https://github.com/vercel/next.js/issues/53086
run: cp .env.development .env

- name: Install dependencies
run: npm ci

- name: Build the app
run: npm run build

- name: Run 'next export'
run: npx next export
8 changes: 4 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
~/.npm
Expand All @@ -32,7 +32,7 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '16.x' # Same as in package.json

Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Run Playwright tests
run: npx playwright test --browser ${{ matrix.browser }}

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: always()
with:
name: test-results-${{ matrix.browser }}
Expand Down

0 comments on commit 1242932

Please sign in to comment.