A lexicon-driven AppView for ATProto. happyview.dev
backfill firehose jetstream atproto appview oauth lexicon
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: add test and lint workflow, gate docker builds on passing tests

Trezy 5ae184a8 d6eaca2d

+65
+4
.github/workflows/docker.yml
··· 10 10 ATCR_IMAGE: atcr.io/${{ secrets.ATCR_NAMESPACE }}/happyview 11 11 12 12 jobs: 13 + test: 14 + uses: ./.github/workflows/test.yml 15 + 13 16 build: 17 + needs: test 14 18 runs-on: ubuntu-latest 15 19 permissions: 16 20 contents: read
+61
.github/workflows/test.yml
··· 1 + name: Test 2 + 3 + on: 4 + push: 5 + pull_request: 6 + branches: [main] 7 + workflow_call: 8 + 9 + env: 10 + SQLX_OFFLINE: true 11 + 12 + jobs: 13 + test: 14 + runs-on: ubuntu-latest 15 + 16 + steps: 17 + - name: Checkout repository 18 + uses: actions/checkout@v4 19 + 20 + - name: Cache Rust build 21 + uses: actions/cache@v4 22 + with: 23 + path: | 24 + ~/.cargo/registry 25 + ~/.cargo/git 26 + target 27 + key: rust-test-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} 28 + restore-keys: | 29 + rust-test-${{ runner.os }}- 30 + 31 + - name: Build 32 + run: cargo build --all-targets 33 + 34 + - name: Run tests 35 + run: cargo test 36 + 37 + lint: 38 + runs-on: ubuntu-latest 39 + 40 + steps: 41 + - name: Checkout repository 42 + uses: actions/checkout@v4 43 + 44 + - name: Cache Rust build 45 + uses: actions/cache@v4 46 + with: 47 + path: | 48 + ~/.cargo/registry 49 + ~/.cargo/git 50 + target 51 + key: rust-lint-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} 52 + restore-keys: | 53 + rust-lint-${{ runner.os }}- 54 + 55 + - name: Check formatting 56 + run: cargo fmt -- --check 57 + 58 + - name: Clippy 59 + env: 60 + SQLX_OFFLINE: true 61 + run: cargo clippy --all-targets -- -D warnings