Unique and expiring jobs (Enterprise Faktory) #2
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
# This is a CI workflow that runs the test against Enterprise Edition of Faktory. | |
# The binary (for macos only) is avalable for download for testing purposes with each Faktory release. | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
name: enterprise | |
jobs: | |
test: | |
runs-on: macos-latest | |
env: | |
FAKTORY_VERSION: 1.8.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install redis | |
run: brew install redis | |
- name: Download Faktory binary | |
run: | | |
wget -O faktory.tbz https://github.com/contribsys/faktory/releases/download/v${{ env.FAKTORY_VERSION }}/faktory-ent_${{ env.FAKTORY_VERSION }}.macos.amd64.tbz | |
tar xfv faktory.tbz | |
cp ./faktory /usr/local/bin | |
- name: Launch Faktory in background | |
run: faktory & | |
- name: Install stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: cargo generate-lockfile | |
if: hashFiles('Cargo.lock') == '' | |
run: cargo generate-lockfile | |
- name: Run tests | |
env: | |
FAKTORY_URL: tcp://127.0.0.1:7419 | |
FAKTORY_ENT: true | |
run: cargo test --locked --features ent --all-targets | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run doc tests | |
run: cargo test --features ent --doc |