generated from dominiksalvet/template
-
Notifications
You must be signed in to change notification settings - Fork 6
60 lines (51 loc) · 1.39 KB
/
ci.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
#-------------------------------------------------------------------------------
# Copyright 2019-2020 Dominik Salvet
# https://github.com/dominiksalvet/gitpack
#-------------------------------------------------------------------------------
name: CI
on: [push, pull_request]
jobs:
Analysis:
runs-on: ubuntu-20.04
steps:
- name: Checkout commit
uses: actions/checkout@v2
- name: Check shellcheck
run: shellcheck --version
- name: Check source files
run: |
shellcheck src/gitpack
shellcheck src/bash/gitpack-completion
- name: Check test files
run: |
shellcheck test/run.sh
shellcheck test/api/*
shellcheck test/feature/*
shellcheck test/xfail/*
shellcheck test/helper/*
- name: Check install files
run: shellcheck .install/*
Test:
needs: Analysis
strategy:
matrix:
os: [ubuntu-20.04, macos-10.15, windows-2019]
runs-on: ${{matrix.os}}
defaults:
run:
shell: sh {0}
env:
MATRIX_OS: ${{matrix.os}}
steps:
- name: Checkout commit
uses: actions/checkout@v2
- name: Run tests
run: test/run.sh
- name: Upload execution trace
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{matrix.os}}_gitpack-trace
path: |
gitpack-trace/failed_*
gitpack-trace/passed_*