Test #108
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
name: Test | |
on: | |
push: | |
branches: | |
- '**' | |
schedule: | |
- cron: '0 0 * * MON' | |
concurrency: | |
group: '${{ github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test the module | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
steps: | |
- name: Prepare the virtual environment | |
uses: hausgold/actions/ci@master | |
with: | |
clone_token: '${{ secrets.CLONE_TOKEN }}' | |
settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}' | |
settings: '${{ github.repository }}' | |
target: ci/docker | |
- uses: actions/checkout@v4 | |
- name: Install the module dependencies | |
run: make install | |
- name: Start the module dependencies | |
run: START=background make start reload | |
- name: Run the module tests | |
run: make test | |
build: | |
name: Build the module | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
steps: | |
- name: Prepare the virtual environment | |
uses: hausgold/actions/ci@master | |
with: | |
clone_token: '${{ secrets.CLONE_TOKEN }}' | |
settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}' | |
settings: '${{ github.repository }}' | |
target: ci/docker | |
- uses: actions/checkout@v4 | |
- name: Build the module | |
run: make -C .github build |