1
+ # wcurl - a simple wrapper around curl to easily download files.
2
+ #
3
+ # This is wcurl's test pipeline.
4
+ #
5
+ # Copyright (C) Samuel Henrique <[email protected] >, Sergio Durigan
6
+ # Junior <[email protected] > and many contributors, see the AUTHORS
7
+ # file.
8
+ #
9
+ # Permission to use, copy, modify, and distribute this software for any purpose
10
+ # with or without fee is hereby granted, provided that the above copyright
11
+ # notice and this permission notice appear in all copies.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
16
+ # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
17
+ # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
18
+ # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
19
+ # OR OTHER DEALINGS IN THE SOFTWARE.
20
+ #
21
+ # Except as contained in this notice, the name of a copyright holder shall not be
22
+ # used in advertising or otherwise to promote the sale, use or other dealings in
23
+ # this Software without prior written authorization of the copyright holder.
24
+ #
25
+ # SPDX-License-Identifier: curl
26
+ ---
1
27
name : Test
2
28
3
- on :
4
- push :
5
- branches :
6
- - main
7
- pull_request :
8
- branches :
9
- - main
29
+ # on:
30
+ # push:
31
+ # branches:
32
+ # - main
33
+ # pull_request:
34
+ # branches:
35
+ # - main
36
+
37
+ on : push
10
38
11
39
concurrency :
12
40
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -20,22 +48,21 @@ jobs:
20
48
uses : actions/checkout@v4
21
49
22
50
- name : Install tools
23
- run : sudo apt-get update && sudo apt-get install -y shellcheck devscripts
51
+ run : |
52
+ sudo apt-get update
53
+ sudo apt-get install -y shellcheck devscripts
24
54
25
55
- name : Run shellcheck
26
56
run : shellcheck wcurl tests/*
27
57
28
58
- name : Run checkbashisms
29
59
run : checkbashisms wcurl tests/*
30
60
31
- container :
32
- name : ${{ matrix.image }}
61
+ debian :
62
+ name : debian
33
63
runs-on : ubuntu-latest
34
64
container :
35
- image : ${{ matrix.image }}
36
- strategy :
37
- matrix :
38
- image : [debian:stable, debian:testing, debian:unstable, ubuntu:latest]
65
+ image : debian:stable
39
66
steps :
40
67
- name : Checkout repository
41
68
uses : actions/checkout@v4
48
75
- name : Run shunit2 tests
49
76
run : ./tests/tests.sh
50
77
78
+ fedora :
79
+ name : fedora
80
+ runs-on : ubuntu-latest
81
+ container :
82
+ image : fedora:latest
83
+ steps :
84
+ - name : Checkout repository
85
+ uses : actions/checkout@v4
86
+
87
+ - name : Install curl and shunit2
88
+ run : |
89
+ dnf install -y git
90
+ git clone \
91
+ --depth 1 --branch v2.1.8 \
92
+ https://github.com/kward/shunit2.git
93
+ cd shunit2
94
+ cp shunit2 /usr/local/bin/shunit2
95
+
96
+ - name : Run shunit2 tests
97
+ run : ./tests/tests.sh
98
+
51
99
macos :
52
- name : ' macos'
100
+ name : macos
53
101
runs-on : macos-latest
54
102
steps :
55
103
- name : Checkout repository
0 commit comments