Skip to content

chore(deps): Bump actions/cache from 4.0.2 to 4.1.2 #479

chore(deps): Bump actions/cache from 4.0.2 to 4.1.2

chore(deps): Bump actions/cache from 4.0.2 to 4.1.2 #479

name: SNX-API CI
on:
push:
pull_request:
branches: [main, dev]
concurrency:
group:
'${{ github.workflow }} @ ${{ github.event.pull_request.head.label ||
github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
audit:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.event_name == 'pull_request'
runs-on: ubuntu-latest
container:
image: synthetixio/docker-sec-tools:20.12-alpine
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Audit dependencies
run: audit-ci --critical --report-type full
build:
needs: audit
if: always() && (needs.audit.result == 'success' || needs.audit.result == 'skipped')
runs-on: ubuntu-latest
container:
image: synthetixio/docker-node:20.12-alpine
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set pnpm cache directory
run: pnpm config set store-dir .pnpm-store
continue-on-error: true
- name: Setup cache
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # pin@v2
with:
path: |
.pnpm-store
node_modules
key: ${{ runner.os }}-pnpm-v1-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-v1-
continue-on-error: true
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Lint
run: pnpm lint