Skip to content

Commit 5c528c9

Browse files
committed
Fix
Signed-off-by: Arthur Diniz <[email protected]>
1 parent d91bae4 commit 5c528c9

File tree

1 file changed

+63
-15
lines changed

1 file changed

+63
-15
lines changed

.github/workflows/test.yml

Lines changed: 63 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,40 @@
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+
---
127
name: Test
228

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
1038

1139
concurrency:
1240
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -20,22 +48,21 @@ jobs:
2048
uses: actions/checkout@v4
2149

2250
- 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
2454
2555
- name: Run shellcheck
2656
run: shellcheck wcurl tests/*
2757

2858
- name: Run checkbashisms
2959
run: checkbashisms wcurl tests/*
3060

31-
container:
32-
name: ${{ matrix.image }}
61+
debian:
62+
name: debian
3363
runs-on: ubuntu-latest
3464
container:
35-
image: ${{ matrix.image }}
36-
strategy:
37-
matrix:
38-
image: [debian:stable, debian:testing, debian:unstable, ubuntu:latest]
65+
image: debian:stable
3966
steps:
4067
- name: Checkout repository
4168
uses: actions/checkout@v4
@@ -48,8 +75,29 @@ jobs:
4875
- name: Run shunit2 tests
4976
run: ./tests/tests.sh
5077

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+
5199
macos:
52-
name: 'macos'
100+
name: macos
53101
runs-on: macos-latest
54102
steps:
55103
- name: Checkout repository

0 commit comments

Comments
 (0)