Skip to content

Bump axios from 1.3.5 to 1.6.1 #31

Bump axios from 1.3.5 to 1.6.1

Bump axios from 1.3.5 to 1.6.1 #31

Workflow file for this run

---
name: Pre-commit
on: # yamllint disable-line rule:truthy
push:
branches:
- main
pull_request:
defaults:
run:
shell: sh
env:
SKIP: no-commit-to-branch, snyk-test, build, test
jobs:
pre-commit:
runs-on: ubuntu-latest
container:
image: ghcr.io/fabasoad/pre-commit-container:latest
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update git config
run: git config --global --add safe.directory "$(pwd)"
- name: Cache yarn dependencies
id: yarn-cache
uses: actions/cache@v3
with:
path: |
.yarn/cache
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/.yarnrc.yml') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Compile
if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }}
run: yarn install
- name: Run pre-commit on changed files
if: ${{ github.event_name == 'pull_request' }}
run: |
pre-commit run --to-ref ${{ github.sha }} --from-ref origin/${{ github.base_ref }} --hook-stage=commit
pre-commit run --to-ref ${{ github.sha }} --from-ref origin/${{ github.base_ref }} --hook-stage=push
- name: Run pre-commit on all files
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
run: |
pre-commit run --hook-stage=commit --all-files
pre-commit run --hook-stage=push --all-files