Skip to content

Bump prettier from 3.0.1 to 3.0.2 #27

Bump prettier from 3.0.1 to 3.0.2

Bump prettier from 3.0.1 to 3.0.2 #27

name: πŸš€ Pull Request
on:
pull_request: {}
workflow_dispatch: {}
permissions:
actions: write
contents: read
jobs:
lint:
name: ⬣ Deps Check
runs-on: ubuntu-latest
steps:
- name: πŸ›‘ Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: Install native deps
run: sudo apt-get update -y && sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev -y
- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: πŸ“₯ Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: true
- name: πŸ”¬ Lint
run: npm run prettier:check
renderTest:
name: ⬣ Rendering Test
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: πŸ›‘ Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: Install native deps
run: sudo apt-get update -y && sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: πŸ“₯ Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: true
- name: Run Server
run: |
export Client_ID=${{secrets.SPOTIFY_CLIENT_ID}} Client_Secret=${{secrets.SPOTIFY_CLIENT_SECRET}}
npm start &
sleep 10
- name: Render and Save Image
run: |
curl "http://localhost:3000/api?id=05iALOptaNoV3EmXnxz1IJ&color=A0C3D2" > output.png
- name: Verify Image
run: |
ls -lah &&
cat ./output.png
- name: Download Image
uses: actions/upload-artifact@v3
with:
name: rendered-image
path: ./output.png
- name: Upload a picture
uses: devicons/public-upload-to-imgur@v2.2.2
id: imgur_step
with:
path: ./output.png
client_id: ${{secrets.IMGUR_CLIENT_ID}}
- name: Comment on the PR about the result
uses: github-actions-up-and-running/pr-comment@v1.0.1
env:
IMG_URL: ${{ fromJSON(steps.imgur_step.outputs.imgur_urls)[0] }}
MESSAGE: |
Preview of Alchemy Song on Test Build:
![Image]({0}) # markdown syntax for displaying a picture
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message: ${{format(env.MESSAGE, env.IMG_URL)}}