Merge branch 'main' into tests-on-github-actions #292
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 | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
- name: Install mdl gem | |
run: gem install mdl | |
- name: Run Markdown Lint | |
run: mdl --git-recurse . | |
test: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Replace some binaries with a script that exits quickly, otherwise the build will time out or fail. | |
- name: Mock binaries | |
run: | | |
mkdir $HOME/bin | |
printf '#!'"/usr/bin/env bash\necho 'mas is overridden'" > $HOME/bin/mas | |
chmod +x $HOME/bin/mas | |
- name: Update PATH | |
run: | | |
echo "$HOME/bin" >> $GITHUB_PATH | |
- name: Unlink | |
run: | | |
rm '/usr/local/bin/aws' | |
rm '/usr/local/bin/aws_completer' | |
- run: make | |