Skip to content

Merge pull request #82 from legacycoderocks/update-eslint-config-next #27

Merge pull request #82 from legacycoderocks/update-eslint-config-next

Merge pull request #82 from legacycoderocks/update-eslint-config-next #27

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
types: [opened, synchronize, reopened]
env:
PATREON_CREATOR_ACCESS_TOKEN: ${{ secrets.PATREON_CREATOR_ACCESS_TOKEN }}
PATREON_CAMPAIGN_ID: ${{ secrets.PATREON_CAMPAIGN_ID }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js 24.x
uses: actions/setup-node@v3
with:
node-version: 24.x
cache: 'npm'
- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- run: npm run test