build(deps): bump actions/cache from 4.1.1 to 4.1.2 #2240
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. | |
# Documentation: https://docs.github.com/en/actions | |
name: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Load cached dependencies | |
uses: actions/[email protected] | |
id: cache | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
id: install-dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Lint code | |
id: lint | |
run: npm run lint | |
test: | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379/tcp | |
options: --entrypoint redis-server | |
strategy: | |
matrix: | |
node-version: [16] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Load cached dependencies | |
uses: actions/[email protected] | |
id: cache | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
id: install-dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Run tests | |
id: test | |
run: npm run test | |
env: | |
REDIS_HOST: localhost | |
REDIS_PORT: ${{ job.services.redis.ports[6379] }} | |
build: | |
runs-on: ubuntu-latest | |
needs: lint | |
strategy: | |
matrix: | |
node-version: [16] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Load cached dependencies | |
uses: actions/[email protected] | |
id: cache | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
id: install-dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Try to build the packages | |
id: build-packages | |
run: npm run build:packages |