Standing roles: anchor next_due_at on the present, not the stale stor… #27
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| elixir: | |
| name: Elixir (mix compile + mix test) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: "27" | |
| elixir-version: "1.19" | |
| - name: Cache deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: deps | |
| key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: ${{ runner.os }}-mix- | |
| - name: Cache _build | |
| uses: actions/cache@v4 | |
| with: | |
| path: _build | |
| key: ${{ runner.os }}-build-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: ${{ runner.os }}-build- | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Install felt | |
| run: | | |
| curl -fsSL https://github.com/cailmdaley/felt/releases/latest/download/felt_Linux_x86_64.tar.gz \ | |
| | tar -xz -C /usr/local/bin felt | |
| felt --version | |
| - name: Compile (warnings as errors) | |
| run: mix compile --warnings-as-errors | |
| - name: Run tests | |
| run: mix test | |
| go: | |
| name: Go (build + test) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.22" | |
| - name: Build CLI | |
| run: go build ./cmd/shuttle | |
| - name: Run tests | |
| run: go test ./pkg/schema/... |