Skip to content

Commit 336baea

Browse files
committed
fix(build): add checkout actoin
1 parent 7e5dcd0 commit 336baea

File tree

7 files changed

+30
-31
lines changed

7 files changed

+30
-31
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
version: 2
22
updates:
3-
# dependabot for GitHub Actions for this repo
43
- package-ecosystem: "github-actions"
54
directory: "/"
65
schedule:
76
interval: "weekly"
8-
# dependabot for GitHub Actions for the template
9-
- package-ecosystem: "github-actions"
10-
directory: "template/.github/"
11-
schedule:
12-
interval: "weekly"

.github/workflows/build.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,31 @@ name: Build
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77
pull_request:
88

99
jobs:
1010
plugin_test:
1111
name: asdf plugin test
1212
strategy:
13-
matrix:
14-
os:
15-
- ubuntu-latest
16-
- macos-latest
17-
runs-on: ${{ matrix.os }}
13+
fail-fast: false
14+
matrix:
15+
container:
16+
- alpine:latest
17+
- ubuntu:latest
18+
19+
runs-on: ubuntu-latest
20+
21+
container:
22+
image: ${{ matrix.container }}
1823
steps:
19-
- name: asdf_plugin_test
20-
uses: asdf-vm/actions/plugin-test@v4
24+
- name: Install dependencies
25+
run: |
26+
if [ -f /etc/alpine-release ]; then
27+
apk add --no-cache curl bash git
28+
elif [ -f /etc/debian_version ]; then
29+
apt-get update && apt-get install -y curl bash git
30+
fi
31+
- uses: asdf-vm/actions/plugin-test@v4
2132
with:
22-
command: redis-cli --version
33+
command: redis-cli --version

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Lint
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77
pull_request:
88

99
jobs:
10-
lint:
10+
shellcheck:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77

88
permissions:
99
contents: write
@@ -15,4 +15,4 @@ jobs:
1515
steps:
1616
- uses: GoogleCloudPlatform/release-please-action@v4
1717
with:
18-
release-type: simple
18+
release-type: simple

bin/latest-stable

100644100755
File mode changed.

scripts/format.bash

100644100755
File mode changed.

scripts/lint.bash

100644100755
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,12 @@
33
# lint this repo
44
shellcheck --shell=bash --external-sources \
55
setup.bash \
6-
scripts/*
6+
scripts/* \
7+
bin/* \
8+
lib/*
79

810
shfmt --language-dialect bash --diff \
911
setup.bash \
10-
scripts/*
11-
12-
# lint the template/
13-
shellcheck --shell=bash --external-sources \
14-
template/bin/* --source-path=template/lib/ \
15-
template/lib/* \
16-
template/scripts/*
17-
18-
shfmt --language-dialect bash --diff \
19-
template/**/*
20-
12+
scripts/* \
13+
bin/* \
14+
lib/*

0 commit comments

Comments
 (0)