Skip to content

Test: CI cache

Test: CI cache #5

name: Build
on:
push:
branches: [master, develop]
tags: ['*']
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-monorepo:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Checkout monorepo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: 'Cache build'
uses: 'actions/cache@v3'
with:
path: '.'
key: '${{ runner.os }}-node-18-${{ git rev-parse HEAD }}'

Check failure on line 36 in .github/workflows/build-monorepo.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build-monorepo.yml (Line: 36, Col: 16): Unrecognized named-value: 'git'. Located at position 1 within expression: git rev-parse HEAD
restore-keys: '${{ runner.os }}-node-18'