Skip to content

chore(deps-dev): bump lint-staged from 13.2.3 to 14.0.1 #2141

chore(deps-dev): bump lint-staged from 13.2.3 to 14.0.1

chore(deps-dev): bump lint-staged from 13.2.3 to 14.0.1 #2141

Workflow file for this run

name: LeetCode Trip
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install Pnpm
uses: pnpm/action-setup@v2
with:
version: 6.22.2
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Execute unit tests
run: pnpm run test
- name: Pre compilation
run: pnpm run build
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lcov.info,./clover.xml
directory: ./coverage/
verbose: true
deployment:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'
steps:
- name: Deploy to server
uses: appleboy/ssh-action@v0.1.4
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: sh ./leetcode-trip-deploy.sh