feat: add new loading icons #233
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" | |
uses: ./.github/actions/use-dependencies | |
## | |
# validation | |
## | |
validate_pr_title: | |
name: "Validate PR Title" | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🔧 Setup" | |
uses: ./.github/actions/use-dependencies | |
- name: "📥 Get PR Title" | |
id: get_pr_title | |
uses: actions/github-script@v7 | |
with: | |
result-encoding: string | |
script: | | |
const { data } = await github.rest.pulls.get({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.payload.pull_request.number | |
}); | |
return data.title; | |
- name: "✅ Validate" | |
run: echo "${{ steps.get_pr_title.outputs.result }}" | yarn commitlint | |
## | |
# lint, type-check, build and test | |
## | |
lint: | |
name: "Lint" | |
needs: [install, validate_pr_title] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🔧 Setup" | |
uses: ./.github/actions/use-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" | |
uses: ./.github/actions/use-dependencies | |
- name: "🔍 Type Check" | |
run: yarn check:types | |
test: | |
name: "Test" | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🔧 Setup" | |
uses: ./.github/actions/use-dependencies | |
- name: "🧪 Test" | |
run: yarn test | |
## | |
# build | |
## | |
build_chrome: | |
name: "Build Chrome" | |
needs: [install, validate_pr_title, type_check] | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🔧 Setup" | |
uses: ./.github/actions/use-dependencies | |
- name: "📝 Create .env file" | |
uses: ./.github/actions/create-env-file | |
with: | |
provider_id: ${{ vars.PROVIDER_ID }} | |
- name: "🏗️ Build" | |
run: yarn build:chrome | |
build_edge: | |
name: "Build Edge" | |
needs: [install, validate_pr_title, type_check] | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🔧 Setup" | |
uses: ./.github/actions/use-dependencies | |
- name: "📝 Create .env file" | |
uses: ./.github/actions/create-env-file | |
with: | |
provider_id: ${{ vars.PROVIDER_ID }} | |
- name: "🏗️ Build" | |
run: yarn build:edge | |
build_firefox: | |
name: "Build Firefox" | |
needs: [install, validate_pr_title, type_check] | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🔧 Setup" | |
uses: ./.github/actions/use-dependencies | |
- name: "📝 Create .env file" | |
uses: ./.github/actions/create-env-file | |
with: | |
provider_id: ${{ vars.PROVIDER_ID }} | |
- name: "🏗️ Build" | |
run: yarn build:firefox | |
- name: "✅ Validate" | |
run: yarn validate:firefox |