-
Notifications
You must be signed in to change notification settings - Fork 6
141 lines (134 loc) · 3.26 KB
/
end-to-end.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: end-to-end
on:
pull_request:
push:
branches:
- master
- next
- +([0-9])?(.{+([0-9]),x}).x
jobs:
cancel:
name: cancel-previous-runs
runs-on: ubuntu-20.04
timeout-minutes: 3
steps:
- uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
lint:
name: lint
runs-on: ubuntu-20.04
container: koalaman/shellcheck-alpine:stable
steps:
- name: checkout
uses: actions/checkout@v2
- name: run-lint
run: ./hack/lint.sh
os:
name: "end-to-end-${{ matrix.os }}"
runs-on: ${{ matrix.os }}
needs:
- cancel
- lint
strategy:
matrix:
os:
- macos-11.0
- macos-10.15
- ubuntu-20.04
- ubuntu-18.04
- ubuntu-16.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: install-bash
run: ./hack/install.sh bash
- name: run-tests-bash
run: ./hack/test.sh bash
- name: install-zsh
run: ./hack/install.sh zsh
- name: run-tests-zsh
run: ./hack/test.sh zsh
win:
name: "end-to-end-${{ matrix.os }}"
runs-on: ${{ matrix.os }}
needs:
- cancel
- lint
strategy:
matrix:
os:
- windows-2019
defaults:
run:
shell: wsl-bash -u build {0}
steps:
- name: setup-wsl
uses: vampire/setup-wsl@v1
- name: checkout
uses: actions/checkout@v2
- name: install-pre
run: ./hack/pre.apt.sh
shell: wsl-bash -u root {0}
- name: install-bash
run: ./hack/install.sh bash
- name: run-tests-bash
run: ./hack/test.sh bash
- name: install-zsh
run: ./hack/install.sh zsh
- name: run-tests-zsh
run: ./hack/test.sh zsh
container-apt:
name: "end-to-end-${{ matrix.container }}"
runs-on: ubuntu-20.04
container: ${{ matrix.container }}
needs:
- cancel
- lint
strategy:
matrix:
container:
- debian:9
- debian:10
- linuxmintd/mint18-amd64
- linuxmintd/mint19-amd64
- linuxmintd/mint20-amd64
steps:
- name: checkout
uses: actions/checkout@v2
- name: install-pre
run: ./hack/pre.apt.sh
- name: install-bash
run: gosu build ./hack/install.sh bash
- name: run-tests-bash
run: gosu build ./hack/test.sh bash
- name: install-zsh
run: gosu build ./hack/install.sh zsh
- name: run-tests-zsh
run: gosu build ./hack/test.sh zsh
container-yum:
name: "end-to-end-${{ matrix.container }}"
runs-on: ubuntu-20.04
container: ${{ matrix.container }}
needs:
- cancel
- lint
strategy:
matrix:
container:
- centos:8
- fedora:32
- fedora:33
steps:
- name: checkout
uses: actions/checkout@v2
- name: install-pre
run: ./hack/pre.yum.sh
- name: install-bash
run: gosu build ./hack/install.sh bash
- name: run-tests-bash
run: gosu build ./hack/test.sh bash
- name: install-zsh
run: gosu build ./hack/install.sh zsh
- name: run-tests-zsh
run: gosu build ./hack/test.sh zsh