-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (29 loc) · 923 Bytes
/
ci.yml
File metadata and controls
32 lines (29 loc) · 923 Bytes
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
name: CI
on: [push, pull_request]
jobs:
Test:
runs-on: ubuntu-latest
container: ghcr.io/dimo414/bash-ci
strategy:
fail-fast: false
matrix:
bash-version: [bash-5.2, bash-5.1, bash-5.0, bash-4.4, bash-4.3, bash-3.2]
steps:
- uses: actions/checkout@v1
- name: "Tests"
run: ${{ matrix.bash-version }} -c 'bats test'
- name: "Benchmark"
run: ${{ matrix.bash-version }} -c 'example() { sleep 1; } && source bash-cache.sh && bc::benchmark example && bc::benchmark_memoize example'
ShellCheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: bash test/generate-dynamic.sh
- name: ShellCheck
uses: docker://koalaman/shellcheck-alpine
with:
entrypoint: sh
args: -c "find . -name '*.sh' -exec shellcheck {} +"
- uses: actions/upload-artifact@v2
with:
path: generated.sh