A decentralized music tracking and discovery platform built on AT Protocol 馃幍
listenbrainz spotify atproto lastfm musicbrainz scrobbling
at main 1.3 kB view raw
1name: ci 2on: 3 push: 4 branches: 5 - main 6 pull_request: 7 branches: 8 - main 9jobs: 10 tests: 11 runs-on: ubuntu-latest 12 13 services: 14 redis: 15 image: redis:7-alpine 16 ports: 17 - 6379/tcp 18 options: >- 19 --health-cmd "redis-cli ping || exit 1" 20 --health-interval 5s 21 --health-timeout 3s 22 --health-retries 10 23 24 steps: 25 - uses: actions/checkout@v2 26 - name: Show Redis port 27 run: echo "Redis on localhost:${{ job.services.redis.ports['6379'] }}" 28 - name: Install dependencies 29 run: | 30 sudo apt-get update && sudo apt-get install -y \ 31 libreadline-dev \ 32 pkg-config \ 33 flex \ 34 bison \ 35 build-essential 36 - name: Setup Fluent CI 37 uses: fluentci-io/setup-fluentci@v5 38 with: 39 wasm: true 40 plugin: rust 41 args: setup 42 env: 43 GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} 44 - name: Run fmt 45 run: | 46 type cargo 47 cargo fmt --all --check 48 - name: Run tests 49 run: | 50 cargo test -p rocksky-tracklist 51 env: 52 REDIS_URL: redis://localhost:${{ job.services.redis.ports['6379'] }}