Skip to content

ci/github

ci/github #315

Workflow file for this run

name: ci/github
on:
push:
paths-ignore:
- '**.md'
- '.git*'
pull_request:
workflow_dispatch:
schedule:
- cron: '45 3 5,15,25 * *'
jobs:
test-linux:
runs-on: ubuntu-latest
name: test-${{ matrix.image }}
container: ghcr.io/sio/bash-complete-partial-path:${{ matrix.image }}
strategy:
matrix:
image:
- centos-7
- debian-8
- debian-9
- debian-10
- debian-11
- debian-12
- scop
env:
PIP_CACHE_DIR: cache/pip
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: cache
key: cache-v1-${{ runner.os }}-${{ matrix.image }}-${{ hashFiles('tests/requirements.txt') }}
- run: make test
test-other-os:
name: test-${{ matrix.os }}
runs-on: ubuntu-latest
container: potyarkin/cirrus-run
strategy:
matrix:
os:
- freebsd
- macos
env:
CIRRUS_API_TOKEN: ${{ secrets.CIRRUS_API_TOKEN }}
CIRRUS_GITHUB_REPO: ${{ secrets.CIRRUS_GITHUB_REPO }}
CIRRUS_SHOW_BUILD_LOG: always
steps:
- uses: actions/checkout@v3
- run: cirrus-run .ci/cirrus-${{ matrix.os }}.yml.j2
test-msys2:
runs-on: windows-latest
env:
PIP_CACHE_DIR: cache/pip
defaults:
run:
shell: C:\msys64\usr\bin\bash.exe -xeuo pipefail {0}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: cache
key: cache-v1-${{ runner.os }}-msys2-${{ hashFiles('tests/requirements.txt') }}
- name: Upgrade Msys2 environment
run: |-
exec pacman --noconfirm -Syu
env:
PATH: '/usr/local/bin:/usr/bin:/bin'
- name: Install dependencies
run: |-
exec pacman --noconfirm -Sy make python3 libopenssl curl libcurl
env:
PATH: '/usr/local/bin:/usr/bin:/bin'
- name: make test
run: |-
make test
env:
PATH: '/usr/local/bin:/usr/bin:/bin'
shellcheck:
runs-on: ubuntu-latest
name: shellcheck
container: koalaman/shellcheck-alpine
steps:
- uses: actions/checkout@v3
- run: apk update; apk add make
- run: make lint