verify specified tubes exist before executing for certain commands #16
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: [ master ] | |
| pull_request: | |
| jobs: | |
| run-tests: | |
| env: | |
| BEANSTALK_VERSION: '1.12' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: cache beanstalkd | |
| id: cache-beanstalkd | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/beanstalks | |
| key: ${{ runner.os }}-${{ env.BEANSTALK_VERSION }} | |
| - name: build beanstalkd | |
| if: steps.cache-beanstalkd.cache_hit != 'true' | |
| run: | | |
| mkdir -p ~/beanstalks | |
| curl -LJ -o /tmp/beanstalkd.tar.gz https://github.com/beanstalkd/beanstalkd/archive/v${{ env.BEANSTALK_VERSION }}.tar.gz | |
| tar -C /tmp -xvf /tmp/beanstalkd.tar.gz | |
| cd /tmp/beanstalkd-${{ env.BEANSTALK_VERSION }} | |
| make | |
| mv beanstalkd ~/beanstalks/ | |
| - name: set up python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.9 | |
| - name: make test | |
| run: "make test" | |
| env: | |
| BEANSTALKD_PATH: ~/beanstalks/beanstalkd |