-
Notifications
You must be signed in to change notification settings - Fork 46
46 lines (36 loc) · 1.12 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
static-analysis:
runs-on: ubuntu-latest
name: 💿 Static analysis
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: git submodule update --init --recursive
- name: Set needed environment variables
run: |
echo "DOTFILES_PATH=$PWD" >> $GITHUB_ENV
echo "DOTLY_PATH=$PWD/modules/dotly" >> $GITHUB_ENV
- name: 💿 Static analysis
run: bash "$DOTLY_PATH/scripts/self/static_analysis"
lint:
runs-on: ubuntu-latest
name: 💅 Lint
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: git submodule update --init --recursive
- name: Set needed environment variables
run: |
echo "DOTFILES_PATH=$PWD" >> $GITHUB_ENV
echo "DOTLY_PATH=$PWD/modules/dotly" >> $GITHUB_ENV
echo "PATH=$PATH:$HOME/go/bin" >> $GITHUB_ENV
- name: 📥 Install shfmt
run: go get mvdan.cc/sh/v3/cmd/shfmt
- name: 💅 Lint bash files
run: bash "$DOTLY_PATH/scripts/self/lint"