Skip to content

Add --pull=always to the staging instructions to ensure we work with … #88

Add --pull=always to the staging instructions to ensure we work with …

Add --pull=always to the staging instructions to ensure we work with … #88

Workflow file for this run

name: 'Lint & Test'
on: push
env:
NODE_ENV: test
jobs:
ci:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
id: setup-node
with:
node-version-file: .tool-versions
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- name: Save & restore node cache
uses: actions/cache@v4
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
npm ci
- name: Lint code
run: |
npm run lint
- name: Run tests
run: |
npm run test