name: ci on: push: branches: - main pull_request: branches: - main jobs: tests: runs-on: ubuntu-latest services: redis: image: redis:7-alpine ports: - 6379/tcp options: >- --health-cmd "redis-cli ping || exit 1" --health-interval 5s --health-timeout 3s --health-retries 10 steps: - uses: actions/checkout@v2 - name: Show Redis port run: echo "Redis on localhost:${{ job.services.redis.ports['6379'] }}" - name: Install dependencies run: | sudo apt-get update && sudo apt-get install -y \ libreadline-dev \ pkg-config \ flex \ bison \ build-essential - name: Setup Fluent CI uses: fluentci-io/setup-fluentci@v5 with: wasm: true plugin: rust args: setup env: GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run fmt run: | type cargo cargo fmt --all --check - name: Run tests run: | cargo test -p rocksky-tracklist env: REDIS_URL: redis://localhost:${{ job.services.redis.ports['6379'] }}