Bump actions/checkout from 4.1.7 to 4.2.0 (#199) #329
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: Testing | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Run Bats tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Install Pandoc | |
uses: r-lib/actions/[email protected] | |
with: | |
pandoc-version: 3.1.6.1 | |
- name: Get Bats repository | |
uses: actions/[email protected] | |
with: | |
repository: bats-core/bats-core | |
ref: v1.11.0 | |
path: bats-core | |
- name: Install dependencies | |
run: | | |
echo "::group::Install BATS" | |
cd bats-core | |
./install.sh "$HOME" | |
printf '%s\n' "$HOME/bin" "$HOME/.local/bin" >> "$GITHUB_PATH" | |
echo "::endgroup::" | |
echo "::group::Install graphviz" | |
sudo apt-get install graphviz | |
echo "::endgroup::" | |
echo "::group::Install inotify-tools" | |
sudo apt-get install inotify-tools | |
echo "::endgroup::" | |
- name: Run tests | |
run: bats --tap test |