chore(deps): update dependencies #106
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
static-analysis: | |
name: πΏ Static analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout project | |
uses: actions/checkout@v2 | |
- name: βͺοΈ Set needed environment variables | |
run: | | |
echo "DOTFILES_PATH=$PWD" >> $GITHUB_ENV | |
- name: π Static analysis | |
run: bash scripts/self/static_analysis | |
lint: | |
name: π Lint | |
runs-on: ubuntu-latest | |
needs: static-analysis | |
steps: | |
- name: β¬οΈ Checkout project | |
uses: actions/checkout@v2 | |
- name: πΏοΈ Setup go version | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "^1.16.1" | |
- name: βͺοΈ Set needed environment variables | |
run: | | |
echo "DOTFILES_PATH=$PWD" >> $GITHUB_ENV | |
echo "PATH=$PATH:$HOME/go/bin" >> $GITHUB_ENV | |
- name: π₯ Install shfmt | |
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest | |
- name: π Lint bash files | |
run: bash scripts/self/lint | |
build: | |
name: π Build | |
runs-on: ${{ matrix.os }} | |
needs: lint | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout project | |
uses: actions/checkout@v2 | |
- name: π₯ Install .dotfiles | |
run: echo "$HOME/.dotfiles" | bash installer |