build: fix dependebot vulnerabilities #30
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: "Pull Request Checks" | |
on: | |
pull_request: | |
jobs: | |
## | |
# install | |
## | |
install: | |
name: "Install" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🧶 Setup Yarn Dependencies" | |
uses: ./.github/actions/use-yarn-dependencies | |
## | |
# validation | |
## | |
validate_pr_title: | |
name: "Validate PR Title" | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🧶 Setup Yarn Dependencies" | |
uses: ./.github/actions/use-yarn-dependencies | |
- name: "✅ Validate" | |
run: echo ${{ github.event.pull_request.title }} | yarn commitlint | |
## | |
# lint, build documentation, build package and test | |
## | |
lint: | |
name: "Lint" | |
needs: [install, validate_pr_title] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🧶 Setup Yarn Dependencies" | |
uses: ./.github/actions/use-yarn-dependencies | |
- name: "👕 Lint" | |
run: yarn lint | |
type_check: | |
name: "Type Check" | |
needs: [install, validate_pr_title] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🧶 Setup Yarn Dependencies" | |
uses: ./.github/actions/use-yarn-dependencies | |
- name: "🔍 Type Check" | |
run: yarn types:check | |
build_documentation: | |
name: "Build Documentation" | |
needs: [install, validate_pr_title] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🧶 Setup Yarn Dependencies" | |
uses: ./.github/actions/use-yarn-dependencies | |
- name: "🏗️ Build" | |
run: yarn docs:build | |
build_package: | |
name: "Build Package" | |
needs: [install, validate_pr_title] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🧶 Setup Yarn Dependencies" | |
uses: ./.github/actions/use-yarn-dependencies | |
- name: "🏗️ Build" | |
run: yarn build | |
test: | |
name: "Test" | |
needs: [install, validate_pr_title] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🧶 Setup Yarn Dependencies" | |
uses: ./.github/actions/use-yarn-dependencies | |
- name: "🧪 Test" | |
run: yarn test |