Test rules_mayhem Mayhemfiles #56
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 rules_mayhem Mayhemfiles | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
env: | |
USE_BAZEL_VERSION: ${{ github.event.schedule != '' && 'last_green' || '' }} | |
jobs: | |
tests: | |
name: Run tests | |
runs-on: ubuntu | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Get dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -yq \ | |
curl | |
- name: Download Mayhem | |
run: | | |
curl --fail -L https://app.mayhem.security/cli/Linux/install.sh | sh | |
- name: Build Mayhemfiles | |
run: | | |
bazel build //examples:all | |
- name: Run tests | |
run: | | |
bazel test //examples:all |