-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
33 lines (28 loc) · 870 Bytes
/
action.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
name: Install build dependencies
description: Installs JDK 17, hadolint, and spectral for Java app builds
runs:
using: composite
steps:
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: '17'
- name: Install hadolint
shell: bash
run: |
sudo wget -O /usr/local/bin/hadolint \
"https://github.com/hadolint/hadolint/releases/download/v$HADOLINT_VERSION/hadolint-Linux-x86_64"
sudo chmod +x /usr/local/bin/hadolint
hadolint --version
which hadolint
env:
HADOLINT_VERSION: '2.10.0'
- name: Install spectral JSON/YAML linter
shell: bash
run: npm install -g @stoplight/[email protected]
- name: Output ShellCheck info
shell: bash
run: |
shellcheck --version
which shellcheck