Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

chore(deps): update jest monorepo to v29 (major) #515

chore(deps): update jest monorepo to v29 (major)

chore(deps): update jest monorepo to v29 (major) #515

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Install Rust
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Cache dependencies
uses: Swatinem/rust-cache@v1
- name: Install rustfmt
run: rustup component add rustfmt
- name: Run rustfmt
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Install Rust
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Cache dependencies
uses: Swatinem/rust-cache@v1
- name: Install clippy
run: rustup component add clippy
- name: Run clippy
run: cargo clippy -- -D warnings
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
with:
ref: ${{ github.head_ref }}
- name: Setup node
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # tag=v3
with:
node-version: 16
check-latest: true
- name: Install Dependencies
run: yarn --immutable
- name: Run prettier
uses: creyD/prettier_action@6602189cf8bac1ce73ffe601925f6127ab7f21ac # tag=v4.2
with:
dry: true
prettier_options: --check .
eslint:
name: ESlint
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
with:
ref: ${{ github.head_ref }}
- name: Setup node
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # tag=v3
with:
node-version: 16
check-latest: true
- name: Install Dependencies
run: yarn --immutable
- name: Run ESlint
run: yarn lint
docs:
name: Generate Docs
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node.js v16
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # tag=v3
with:
node-version: 16
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
run: yarn --immutable
- name: Generate Docs
run: yarn docs
- name: Deploy
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # tag=v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'