forked from jonhoo/faktory-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'ent' test workflow for Enterprise Faktory feats
- Loading branch information
1 parent
fb7f016
commit fb8756b
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Test against Enterprise Faktory | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
env: | ||
FAKTORY_VERSION: 1.8.0 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: ========== PROCURE REDIS (FAKTORY DEP) =========== | ||
run: brew install redis | ||
|
||
- name: ========== PROCURE 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 SERVER ================= | ||
run: faktory & | ||
|
||
- name: ========== PROCURE RUST TOOLCHAIN (STABLE) ======= | ||
run: | | ||
rustup set profile minimal | ||
rustup toolchain install stable | ||
- name: ========== RUN TESTS FOR "ENT" FEATURE =========== | ||
env: | ||
FAKTORY_URL: tcp://127.0.0.1:7419 | ||
run: cargo test --features ent |