Skip to content

Commit

Permalink
test gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Jan 3, 2024
1 parent f604391 commit 1bca479
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
env:
GOPATH: "/home/runner/go"
steps:
- run: "echo \"${PATH}:${GOPATH}/bin\" >> $GITHUB_PATH"
- run: "echo \"/usr/local/go/bin\" >> $GITHUB_PATH"
- run: "echo \"${GOPATH}/bin\" >> $GITHUB_PATH"
- uses: "actions/checkout@v4"
- run: "sudo apt-add-repository ppa:longsleep/golang-backports"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo golang-1.21 make npm"
- run: "sudo apt-get install -y cargo make npm wget"
- run: "wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz"
- run: "make -f install.mk"
#
# Debian-based Ubuntu GitHub Actions base OS is
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ jobs:
env:
GOPATH: "/home/runner/go"
steps:
- run: "echo \"${PATH}:${GOPATH}/bin\" >> $GITHUB_PATH"
- run: "echo \"/usr/local/go/bin\" >> $GITHUB_PATH"
- run: "echo \"${GOPATH}/bin\" >> $GITHUB_PATH"
- uses: "actions/checkout@v4"
- run: "sudo apt-add-repository ppa:longsleep/golang-backports"
- run: "sudo apt-get update"
- run: "sudo apt-get install -y cargo golang-1.21 make npm"
- run: "sudo apt-get install -y cargo make npm wget"
- run: "wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz"
- run: "make -f install.mk"
- run: "make lint"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/mcandre/dotfiles

go 1.20
go 1.21
4 changes: 4 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,25 @@ snyk:

shfmt:
stank -exInterp zsh . | \
grep -v .sample | \
xargs -n 1 shfmt -w -i 4

bashate:
stank . | \
grep -v .sample | \
xargs -n 1 bashate -i E006

funk:
funk .

slick:
stank -sh . | \
grep -v .sample | \
xargs -n 1 slick

shellcheck:
stank -exInterp zsh . | \
grep -v .sample | \
xargs -n 1 shellcheck

unmake:
Expand Down

0 comments on commit 1bca479

Please sign in to comment.