Skip to content

chore(deps): bump actions/cache from 2.1.6 to 4.0.0 #15622

chore(deps): bump actions/cache from 2.1.6 to 4.0.0

chore(deps): bump actions/cache from 2.1.6 to 4.0.0 #15622

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
static_analysis:
name: Static Analysis
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Setup Node
uses: actions/setup-node@v2.3.0
with:
node-version: 18.16
- name: Install Yarn
run: npm install --global yarn@1.22
- name: Set Yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore Yarn cache
uses: actions/cache@v4.0.0
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-cache-
- name: Install Node dependencies
run: yarn install --frozen-lockfile
- name: Lint files, scripts, styles, and types
run: yarn --silent lint
test:
name: Test
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Setup Node
uses: actions/setup-node@v2.3.0
with:
node-version: 18.16
- name: Install Yarn
run: npm install --global yarn@1.22
- name: Set Yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore Yarn cache
uses: actions/cache@v4.0.0
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-cache-
- name: Install Node dependencies
run: yarn install --frozen-lockfile
- name: Test units
run: yarn --silent test:units --coverage --run-in-band
- name: Publish code coverage results
uses: codecov/codecov-action@v2.0.2
deploy:
name: Deploy
needs:
- static_analysis
- test
runs-on: ubuntu-20.04
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Setup Node
uses: actions/setup-node@v2.3.0
with:
node-version: 18.16
- name: Install Yarn
run: npm install --global yarn@1.22
- name: Set Yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore Yarn cache
uses: actions/cache@v4.0.0
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-cache-
- name: Install Node dependencies
run: yarn install --frozen-lockfile
- name: Deploy application
run: yarn --silent deploy --release
env:
API_URI: https://andrewjtorr.es/api
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
TRANSLATIONS_DIR: translations