-
Notifications
You must be signed in to change notification settings - Fork 73
65 lines (53 loc) · 1.26 KB
/
workflow.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Main workflow
on:
pull_request:
types:
- opened
- synchronize
- reopened
paths-ignore:
- "**.md"
push:
branches:
- master
paths-ignore:
- "**.md"
jobs:
plugin_test:
strategy:
fail-fast: false
matrix:
os:
- os: macos-latest
version: 1.18.3-otp-27
- os: ubuntu-latest
version: 1.13.4-otp-22
runs-on: ${{ matrix.os.os }}
steps:
- name: Install system packages on Ubuntu
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get install curl erlang
- name: Install system packages on macOS
if: ${{ runner.os == 'macOS' }}
run: brew install coreutils erlang
- name: Test plugin
uses: asdf-vm/actions/plugin-test@v2
with:
command: elixir --version
version: ${{ matrix.os.version }}
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run ShellCheck
run: shellcheck bin/*
format:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install shfmt
run: brew install shfmt
- name: Run shfmt
run: shfmt -i 2 -d .