Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Diniz <[email protected]>
  • Loading branch information
arthurbdiniz committed Dec 9, 2024
1 parent d91bae4 commit ddf4be5
Showing 1 changed file with 63 additions and 15 deletions.
78 changes: 63 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,40 @@
# wcurl - a simple wrapper around curl to easily download files.
#
# This is wcurl's test pipeline.
#
# Copyright (C) Samuel Henrique <[email protected]>, Sergio Durigan
# Junior <[email protected]> and many contributors, see the AUTHORS
# file.
#
# Permission to use, copy, modify, and distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright
# notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
# OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of a copyright holder shall not be
# used in advertising or otherwise to promote the sale, use or other dealings in
# this Software without prior written authorization of the copyright holder.
#
# SPDX-License-Identifier: curl
---
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main
# on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main

on: push

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

- name: Install tools
run: sudo apt-get update && sudo apt-get install -y shellcheck devscripts
run: |
apt-get update
apt-get install -y shellcheck devscripts
- name: Run shellcheck
run: shellcheck wcurl tests/*

- name: Run checkbashisms
run: checkbashisms wcurl tests/*

container:
name: ${{ matrix.image }}
debian:
name: debian
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
strategy:
matrix:
image: [debian:stable, debian:testing, debian:unstable, ubuntu:latest]
image: debian:stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -48,8 +75,29 @@ jobs:
- name: Run shunit2 tests
run: ./tests/tests.sh

fedora:
name: fedora
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install curl and shunit2
run: |
dnf install -y git
git clone \
--depth 1 --branch v2.1.8 \
https://github.com/kward/shunit2.git
cd shunit2
cp shunit2 /usr/local/bin/shunit2
- name: Run shunit2 tests
run: ./tests/tests.sh

macos:
name: 'macos'
name: macos
runs-on: macos-latest
steps:
- name: Checkout repository
Expand Down

0 comments on commit ddf4be5

Please sign in to comment.