Skip to content

feat: integrate gum into other git alias #334

feat: integrate gum into other git alias

feat: integrate gum into other git alias #334

Workflow file for this run

name: lint
on: [push, pull_request]
env:
GO_VERSION: go1.18.3
jobs:
precommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Cache precommit virutalenvs
uses: actions/cache@v2
with:
path: |
~/.cache/pre-commit/
~/.cache/pip/
key: ${{runner.os}}-pre-commit-${{hashFiles('.pre-commit-config.yaml')}}
- name: OS Info
run: |
sudo apt-get install wget
wget https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch && chmod +x ./neofetch && ./neofetch
- name: Install dependencies
run: |
sudo apt-get install -y \
bison \
curl \
git \
shellcheck \
python3-setuptools \
python-setuptools \
python3-pip \
python3-virtualenv \
luarocks \
golang
./install.sh --portables --verbose
rm -f ~/.local/bin/shfmt
sudo luarocks install luacheck
# bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
# source "$HOME/.gvm/scripts/gvm"
# gvm install "$GO_VERSION" -B
# gvm use "$GO_VERSION" --default
go install mvdan.cc/sh/v3/cmd/shfmt@latest
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/go/bin/" >> $GITHUB_PATH
- name: Linting source code
uses: pre-commit/[email protected]