Repository navigation
40 lines (36 loc) · 1.37 KB
/
Copy pathci.yml
File metadata and controls
40 lines (36 loc) · 1.37 KB
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
name: ci
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- run: make check-format-go
- run: go vet ./...
- run: go build ./...
- run: go test ./...
shell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
# ubuntu-latest ships shellcheck; every file here carries a #!/bin/sh
# shebang, so no -s is needed to pick the dialect.
- run: shellcheck lima/scripts/*.sh lima/files/*.sh lima/files/install-neovim
# The bash completion has no shebang, so name the dialect. dev-vm.zsh and
# dev-vm.fish are dialects shellcheck does not support.
- run: shellcheck -s bash completions/dev-vm.bash
# No printer flags, so shfmt takes the indent from .editorconfig. It walks
# the directories in the Makefile's SHELL_DIRS and finds shell files by
# extension or shebang, so a new script needs no change here.
- run: make check-format-shell