Feature/kafka reader #62
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: "Test" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
strategy: | |
fail-fast: false # Prevents the matrix from failing fast | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
# - name: setup docker (macos) with Colima | |
# if: runner.os == 'macOS' | |
# run: | | |
# brew install docker docker-compose colima | |
# sudo chmod -R 755 /Users/runner/.colima/ # Adjust permissions | |
# colima start --vm-type=vz --debug | |
# echo $SHELL | |
# sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock | |
# docker --version | |
# curl -s --unix-socket $HOME/.colima/default/docker.sock http/_ping | |
# continue-on-error: true # Continue even if Colima setup fails | |
- name: Fallback to Docker Desktop (macos) | |
if: runner.os == 'macOS' | |
run: | | |
echo "Colima failed, trying Docker Desktop..." | |
brew install --cask docker | |
open -a Docker | |
sleep 10 # wait for Docker Desktop to initialize | |
docker --version | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: devenv | |
- name: Install devenv.sh | |
run: nix profile install nixpkgs#devenv | |
- name: Build the devenv shell and run any pre-commit hooks | |
run: devenv test |