Skip to content

Commit

Permalink
chore(workflows): update jobs order on ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pauchiner committed Feb 5, 2024
1 parent 651a540 commit 43a0195
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,8 @@ on:
- push
- pull_request
jobs:
extras:
name: 🎨 Extras
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Install Neovim
shell: bash
run: |
mkdir -p /tmp/nvim
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
cd /tmp/nvim
chmod a+x ./nvim.appimage
./nvim.appimage --appimage-extract
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- uses: actions/checkout@v3
- name: Build Extras
run: |
nvim -u NONE -E -R --headless --cmd "set rtp^=." --cmd "packloadall" --cmd "lua require('pastelnight.extra').setup()" --cmd qa
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(build): auto-generate extras"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
tests:
name: 🧪 Tests
needs: extras
if: always()
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -82,14 +52,46 @@ jobs:
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"

extras:
name: 🎨 Extras
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs:
- tests
- styles

permissions:
contents: write

steps:
- name: Install Neovim
shell: bash
run: |
mkdir -p /tmp/nvim
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
cd /tmp/nvim
chmod a+x ./nvim.appimage
./nvim.appimage --appimage-extract
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- uses: actions/checkout@v3
- name: Build Extras
run: |
nvim -u NONE -E -R --headless --cmd "set rtp^=." --cmd "packloadall" --cmd "lua require('pastelnight.extra').setup()" --cmd qa
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(build): auto-generate extras"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"

docs:
name: 📔 Docs
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest

needs:
- styles
- tests
- extras

permissions:
contents: write
Expand Down Expand Up @@ -118,9 +120,7 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs:
- styles
- docs
- tests

permissions:
contents: write
Expand Down

0 comments on commit 43a0195

Please sign in to comment.