-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.07 KB
/
checks.yaml
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
---
name: Checks
on: [push]
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# cache the ASDF directory, using the values from .tool-versions
- name: ASDF cache
uses: actions/cache@v3
with:
path: ~/.asdf
key: ${{ runner.os }}-asdf-v2-${{ hashFiles('.tool-versions') }}
id: asdf-cache
# only run `asdf install` if we didn't hit the cache
- uses: asdf-vm/actions/install@v1
if: steps.asdf-cache.outputs.cache-hit != 'true'
lint_scripts:
name: Lint Scripts
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v3
- name: ASDF cache
uses: actions/cache@v3
with:
path: ~/.asdf
key: ${{ runner.os }}-asdf-v2-${{ hashFiles('.tool-versions') }}
id: asdf-cache
- name: Setup ASDF environment
uses: mbta/actions/reshim-asdf@v1
- name: Shellcheck
run: shellcheck -a -S style .github/*.sh
- name: Check workflow files
run: actionlint -color