Skip to content

fix(deps): update typescript-eslint monorepo to v8 (major) #452

fix(deps): update typescript-eslint monorepo to v8 (major)

fix(deps): update typescript-eslint monorepo to v8 (major) #452

Workflow file for this run

name: Pull Request
on:
pull_request:
types: [opened, synchronize]
env:
GITHUB_TOKEN: ${{ secrets.BOT_PAT_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SSH_PUBLIC_KEY: ${{ secrets.BOT_SSH_PUBLIC_KEY }}
SSH_PRIVATE_KEY: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
GIT_COMMITTER_NAME: 'Julien Papini [bot]'
GIT_COMMITTER_EMAIL: '[email protected]'
jobs:
lint-commits:
name: Lint / Commits
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Setup Git and SSH
run: |
mkdir ~/.ssh
echo -e "$SSH_PRIVATE_KEY" >> ~/.ssh/signing_key
chmod 600 ~/.ssh/signing_key
echo -e "$SSH_PUBLIC_KEY" >> ~/.ssh/signing_key.pub
chmod 600 ~/.ssh/signing_key.pub
echo "$GIT_COMMITTER_EMAIL $SSH_PUBLIC_KEY" > ~/.ssh/allowed_signers
eval `ssh-agent -s`
ssh-add ~/.ssh/signing_key
git config --global user.name "$GIT_COMMITTER_NAME"
git config --global user.email "$GIT_COMMITTER_EMAIL"
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/signing_key
git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers
git config --global commit.gpgSign true
git config --global tag.gpgSign true
- name: Checkout repository
uses: actions/checkout@v4
with:
ssh-key: ${{ env.SSH_PRIVATE_KEY }}
fetch-depth: 0
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Linting commits
run: pnpm commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
lint-files:
name: Lint / Files
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Setup Git and SSH
run: |
mkdir ~/.ssh
echo -e "$SSH_PRIVATE_KEY" >> ~/.ssh/signing_key
chmod 600 ~/.ssh/signing_key
echo -e "$SSH_PUBLIC_KEY" >> ~/.ssh/signing_key.pub
chmod 600 ~/.ssh/signing_key.pub
echo "$GIT_COMMITTER_EMAIL $SSH_PUBLIC_KEY" > ~/.ssh/allowed_signers
eval `ssh-agent -s`
ssh-add ~/.ssh/signing_key
git config --global user.name "$GIT_COMMITTER_NAME"
git config --global user.email "$GIT_COMMITTER_EMAIL"
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/signing_key
git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers
git config --global commit.gpgSign true
git config --global tag.gpgSign true
- name: Checkout repository
uses: actions/checkout@v4
with:
ssh-key: ${{ env.SSH_PRIVATE_KEY }}
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Linting files
run: pnpm run lint
test-units:
name: Test / Units
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Setup Git and SSH
run: |
mkdir ~/.ssh
echo -e "$SSH_PRIVATE_KEY" >> ~/.ssh/signing_key
chmod 600 ~/.ssh/signing_key
echo -e "$SSH_PUBLIC_KEY" >> ~/.ssh/signing_key.pub
chmod 600 ~/.ssh/signing_key.pub
echo "$GIT_COMMITTER_EMAIL $SSH_PUBLIC_KEY" > ~/.ssh/allowed_signers
eval `ssh-agent -s`
ssh-add ~/.ssh/signing_key
git config --global user.name "$GIT_COMMITTER_NAME"
git config --global user.email "$GIT_COMMITTER_EMAIL"
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/signing_key
git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers
git config --global commit.gpgSign true
git config --global tag.gpgSign true
- name: Checkout repository
uses: actions/checkout@v4
with:
ssh-key: ${{ env.SSH_PRIVATE_KEY }}
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Building
run: pnpm run build
- name: Testing
run: pnpm run test