Fix dependencies step spec now that we're not setting github.user in Git #436
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: Tests | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- '*.hcl' | |
- '*.md' | |
- '*.yml' | |
jobs: | |
macos-tests: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install crystal and tool dependencies | |
run: | | |
brew install crystal meson openssl@3 | |
- name: Install dependencies | |
run: shards install | |
- name: Run lint | |
run: make lint | |
- name: Run tests | |
run: make test STATIC=1 | |
ubuntu-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Add Crystal repos | |
run: curl -sSL https://crystal-lang.org/install.sh | sudo bash | |
- name: Install crystal and tool dependencies | |
run: | | |
sudo apt install -y crystal libevent-dev libpcre2-dev libssl-dev ninja-build | |
sudo apt purge meson | |
sudo pip3 install meson | |
- name: Install dependencies | |
run: shards install | |
- name: Run lint | |
run: make lint | |
- name: Run tests | |
run: make test |