-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (49 loc) · 1.31 KB
/
asdf_ci.yml
File metadata and controls
51 lines (49 loc) · 1.31 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
41
42
43
44
45
46
47
48
49
50
51
name: ASDF CI
on: [push, pull_request]
jobs:
plugin-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
ruby: ["2.6", "2.7"]
runs-on: ${{ matrix.os }}
steps:
# Configures the ruby version used on GitHub-hosted runners
- uses: actions/setup-ruby@v1
with:
# The ruby version to configure
ruby-version: ${{ matrix.ruby }}
- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v1
with:
command: bundle --version
# Test that correct version is actually installed.
plugin-test-version:
strategy:
matrix:
version: ["1.17.3", "2.2.24"]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-ruby@v1
with:
ruby-version: "2.7"
- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v1
with:
command: bundle --version | grep ${{ matrix.version }}
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run ShellCheck
run: shellcheck bin/*
format:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install shfmt
run: brew install shfmt
- name: Run shfmt
run: shfmt -d -i 2 -ci .