chore(*): bump dependencies #21
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
name: Bot CI | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/bot.yml' | |
- 'bot/**' | |
env: | |
SERVICE_NAME: 'bot' | |
NODEJS_VERSION: '18.12.1' | |
PNPM_VERSION: '7.30.1' | |
jobs: | |
workflow: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
steps: | |
- name: Checkout Codebase | |
uses: actions/checkout@v3 | |
- name: Install pnpm globally | |
run: npm install -g pnpm | |
- name: Install dependencies globally | |
run: pnpm install --no-frozen-lockfile | |
- name: Install dependencies on bot | |
run: pnpm install --no-frozen-lockfile | |
working-directory: ./bot | |
- name: Restore Github Cache | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.OS }}-platform-server-${{ hashFiles('pnpm-lock.yaml', '**/pnpm-lock.yaml') }} | |
- name: Run Linter | |
run: pnpm lint | |
working-directory: ./bot | |
- name: Run Tests | |
run: pnpm test | |
working-directory: ./bot | |
- name: Run Prettier Formatting | |
run: npx prettier --write . | |
- name: Run Build | |
run: pnpm build | |
working-directory: ./bot |