mirror of
https://github.com/fscotto/infra.git
synced 2026-05-31 15:59:56 +00:00
Add tmux package and common dotfiles deployment
This commit is contained in:
45
dotfiles/common/.tmux/plugins/tmux/.github/workflows/release.yml
vendored
Normal file
45
dotfiles/common/.tmux/plugins/tmux/.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
name: release-please
|
||||
|
||||
jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: googleapis/release-please-action@v4
|
||||
id: release
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
config-file: .github/release-please-config.json
|
||||
manifest-file: .github/release-please-manifest.json
|
||||
- uses: actions/checkout@v4
|
||||
- name: tag major and minor versions
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
run: |
|
||||
git config user.name github-actions[bot]
|
||||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||
|
||||
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"
|
||||
|
||||
git tag -d latest || true
|
||||
git tag -d v${{ steps.release.outputs.major }} || true
|
||||
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
|
||||
|
||||
git push origin :latest || true
|
||||
git push origin :v${{ steps.release.outputs.major }} || true
|
||||
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
|
||||
|
||||
git tag -a latest -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
|
||||
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
|
||||
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
|
||||
|
||||
git push origin latest
|
||||
git push origin v${{ steps.release.outputs.major }}
|
||||
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
|
||||
32
dotfiles/common/.tmux/plugins/tmux/.github/workflows/shellcheck.yml
vendored
Normal file
32
dotfiles/common/.tmux/plugins/tmux/.github/workflows/shellcheck.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: Shellcheck
|
||||
permissions:
|
||||
contents: read
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "*.md"
|
||||
- "assets/**"
|
||||
push:
|
||||
paths-ignore:
|
||||
- "*.md"
|
||||
- "assets/**"
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
shellcheck:
|
||||
name: Shellcheck
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run ShellCheck
|
||||
uses: ludeeus/action-shellcheck@master
|
||||
with:
|
||||
additional_files: "catppuccin.tmux"
|
||||
env:
|
||||
SHELLCHECK_OPTS: "-a"
|
||||
51
dotfiles/common/.tmux/plugins/tmux/.github/workflows/test.yml
vendored
Normal file
51
dotfiles/common/.tmux/plugins/tmux/.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
---
|
||||
name: Tests
|
||||
permissions:
|
||||
contents: read
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "*.md"
|
||||
- "assets/**"
|
||||
push:
|
||||
paths-ignore:
|
||||
- "*.md"
|
||||
- "assets/**"
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
ubuntu:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Install tmux
|
||||
run: sudo apt-get update && sudo apt-get install -y tmux=3.2a-4ubuntu0.2
|
||||
- uses: actions/checkout@v4
|
||||
- name: Config and Plugin
|
||||
shell: bash
|
||||
run: |
|
||||
bash --version
|
||||
tmux -V
|
||||
./.github/scripts/test.bash ./catppuccin.tmux
|
||||
|
||||
old-bash:
|
||||
name: "Old Bash"
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: bash:3.2.57-alpine3.19 # Bash version used by macos
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check Syntax is Valid
|
||||
shell: bash
|
||||
run: |
|
||||
apk update
|
||||
apk add tmux
|
||||
bash --version
|
||||
tmux -V
|
||||
./.github/scripts/test.bash ./catppuccin.tmux
|
||||
Reference in New Issue
Block a user