β¬οΈ (deps) lint@2024-07-14 π [skip ci] #2384
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' | |
on: | |
pull_request: | |
branches: | |
- main | |
- canary | |
- develop | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
- converted_to_draft | |
concurrency: | |
group: pull-${{ github.ref }}-1 | |
cancel-in-progress: true | |
env: | |
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
jobs: | |
pull: | |
name: 'π·οΈ CI' | |
if: github.event.pull_request.draft == false && !contains(github.event.head_commit.message, '[skip ci]') | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
env: | |
GH_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
IS_ACTOR_VERIFIED: ${{ github.actor == 'jeromefitz' || github.actor == 'renovate[bot]' }} | |
IS_ACTOR_JEROMEFITZ: ${{ github.actor == 'jeromefitz' }} | |
IS_ACTOR_DEPENDABOT: ${{ github.actor == 'dependabot[bot]' }} | |
IS_ACTOR_RENOVATE: ${{ github.actor == 'renovate[bot]' }} | |
steps: | |
- name: 'ποΈ Checkout' | |
id: pull-checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 10 | |
- name: 'π½οΈ Init' | |
id: pull-init | |
uses: JeromeFitz/packages/.github/actions/init@main | |
# - name: 'π§ͺ debug' | |
# id: pull-debug | |
# shell: bash | |
# run: | | |
# echo 'IS_ACTOR_VERIFIED: ${{ env.IS_ACTOR_VERIFIED }}' | |
# echo 'IS_ACTOR_JEROMEFITZ: ${{ env.IS_ACTOR_JEROMEFITZ }}' | |
# echo 'IS_ACTOR_RENOVATE: ${{ env.IS_ACTOR_RENOVATE }}' | |
# echo 'github.actor: ${{ github.actor }}' | |
# - name: 'π§ͺ debug ii' | |
# id: pull-debug-ii | |
# if: ${{ env.IS_ACTOR_VERIFIED == 'true' }} | |
# shell: bash | |
# run: | | |
# echo 'Note: true is a string π' | |
- name: 'π¦ Install' | |
id: pull-install | |
uses: JeromeFitz/packages/.github/actions/install@main | |
- name: 'πΊοΈ Cache (turbo)' | |
id: pull-cache-turbo | |
uses: JeromeFitz/packages/.github/actions/cache-turbo@main | |
with: | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
- name: 'π¨οΈ Lint' | |
id: pull-lint | |
uses: JeromeFitz/packages/.github/actions/lint@main | |
with: | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
# https://docs.github.com/en/actions/learn-github-actions/expressions | |
- name: 'π Commit Message' | |
id: pull-commit-message | |
run: | | |
echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT | |
- name: 'ποΈ Build' | |
id: pull-build | |
uses: JeromeFitz/packages/.github/actions/build@main | |
with: | |
BUILD_COMMAND: 'build' | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} |