Skip to content

#171 @call : initial design considerations #996

#171 @call : initial design considerations

#171 @call : initial design considerations #996

Workflow file for this run

on:
- "push"
# - "pull_request"
name: "Run tests"
jobs:
nix:
name: "Tests *nix / all awks"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, macos-11, macos-12, macos-13 ]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-soft
with:
path: soft
key: ${{ matrix.os }}-${{ hashFiles('Makesurefile') }}-soft--all-2
- name: "run tests"
run: |
./makesure tested_awks
# https://github.com/cross-platform-actions/action
# https://github.com/marketplace/actions/cross-platform-action
freebsd:
runs-on: macos-12
name: "Tests on FreeBSD"
steps:
- uses: actions/checkout@v3
- name: Tests in FreeBSD
id: test
uses: cross-platform-actions/[email protected]
with:
operating_system: freebsd
version: '13.2'
shell: sh
run: |
sudo pkg install -y curl
# sudo pkg install -y wget
sudo pkg install -y bash
# sudo pkg install -y gawk
echo "---------------------------------------"
freebsd-version
pwd
ls -l
bash --version || true
awk --version || true
gawk --version || true
curl --version || true
wget --version || true
echo "======================================="
set -e
./makesure
macos_gawk:
name: "Tests macos / gawk"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-11, macos-12, macos-13 ]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-soft
with:
path: soft
key: ${{ matrix.os }}-soft--macos-gawk
- name: "run tests"
run: |
# TODO understand if this step can be cached
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 \
brew install gawk
PATH="/usr/local/opt/gawk/libexec/gnubin:$PATH" \
./makesure
win:
name: "Tests Win"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-2019, windows-2022 ]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-soft
with:
path: soft
key: ${{ matrix.os }}-soft--win
- name: "run tests"
run: |
& bash -e -c "./makesure"