Forward unmodified ARGV to subcommand #604
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 6 * * 1" # Every monday 6 AM | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, macos-12] | |
crystal: [latest, nightly] | |
include: | |
- os: windows-2022 | |
crystal: nightly | |
- os: ubuntu-22.04 | |
crystal: 1.0.0 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Configure Git | |
run: | | |
git config --global user.email "you@example.com" | |
git config --global user.name "Your Name" | |
git config --global column.ui always | |
git config --global core.autocrlf false | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Install Mercurial | |
run: pip install mercurial | |
- name: Install Crystal | |
uses: oprypin/install-crystal@v1 | |
with: | |
crystal: ${{ matrix.crystal }} | |
- name: Install Fossil | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install fossil | |
- name: Install Fossil | |
if: ${{ matrix.os == 'macos-12' }} | |
run: | | |
brew update | |
brew install fossil | |
- name: Install Fossil | |
if: ${{ matrix.os == 'windows-2022' }} | |
run: choco install fossil | |
- name: Download source | |
uses: actions/checkout@v2 | |
- name: Build | |
run: make -f ${{ runner.os == 'Windows' && 'Makefile.win' || 'Makefile' }} | |
- name: Run specs | |
run: make -f ${{ runner.os == 'Windows' && 'Makefile.win' || 'Makefile' }} test | |
- name: Check formatting | |
run: crystal tool format --check src spec | |
docs: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Download source | |
uses: actions/checkout@v2 | |
- name: Build manpages | |
uses: Analog-inc/asciidoctor-action@v1.3.1 | |
with: | |
shellcommand: "make -B manpages SOURCE_DATE_EPOCH=\"$(date +%s --utc --date \"$(grep -m1 -o -E 'Date: .*' man/shard.yml.5 | cut -d' ' -f2)\")\"" | |
- name: Ensure no changes | |
run: git diff --exit-code |